Skip to content

fix ajax-form loading state not restoring after AJAX completes#68

Open
dza2000 wants to merge 2 commits intoWebstop:masterfrom
dza2000:master
Open

fix ajax-form loading state not restoring after AJAX completes#68
dza2000 wants to merge 2 commits intoWebstop:masterfrom
dza2000:master

Conversation

@dza2000
Copy link
Copy Markdown

@dza2000 dza2000 commented Apr 21, 2026

  • Show spinner + disable submit button on form submit
  • Restore original button HTML and re-enable on AJAX complete
  • Re-enable immediately when user modifies text input, so clearing and retyping a search works without the button staying stuck

dza2000 and others added 2 commits April 21, 2026 12:58
- Show spinner + disable submit button on form submit
- Restore original button HTML and re-enable on AJAX complete
- Re-enable immediately when user modifies text input, so clearing
  and retyping a search works without the button staying stuck

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merges 62 commits from Webstop/core-styles.

Resolves conflict in ajax-form.js: upstream added delegated events,
data-disable-loading-indicator, and loadOnCallback features but never
restored the button after AJAX completed. Combined with proper save/restore
of original button HTML so icons are preserved, restore on AJAX complete,
and re-enable on text input change.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant