Created on 23 March 2023, almost 2 years ago
Updated 5 February 2024, 11 months ago

If you're typing away in a field and autosave triggers, and you stop typing before the save completes, the autosave javascript won't trigger another save.

I'm creating a merge request that will:

  • Remember whether changes have occurred while saving
  • Start another timeout from the complete handler if changes occurred while saving
πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia nigelcunningham Geelong

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nigelcunningham
  • @nigel-cunningham opened merge request.
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States rymcveigh

    I want to make sure I'm doing this accurately. To reproduce this issue I:

    1. Install the module on a vanilla Drupal site
    2. Enable autosave on the base contact webform
    3. Set the autosave trigger to 5000 milliseconds
    4. Fill out the contact form but stop typing as the Ajax call is happening
    5. Then autosave triggers again after another 5 seconds (as I'd expect)

    Autosave triggers twice for me. There's the initial save (when I stop typing) then there's a second save. If I submit the form before the second save the form is saved with the correct values as well.

    Can you please help me reproduce the issue on a vanilla site? What are the steps I can take to reproduce this?

  • πŸ‡¦πŸ‡ΊAustralia nigelcunningham Geelong

    Hi Ryan.

    Sorry for the slow reply. I've just had too much going on.

    I'll seek to do that as soon as I can.

    Regards,

    Nigel

  • Status changed to Closed: outdated 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States rymcveigh
Production build 0.71.5 2024