Skip to content

GH Issue 1186: Show validation indicator whenever validation disables the submit buttons#1166

Open
labkey-martyp wants to merge 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_validation_indicator_1186
Open

GH Issue 1186: Show validation indicator whenever validation disables the submit buttons#1166
labkey-martyp wants to merge 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_validation_indicator_1186

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

GH Issue 1186. The Validating... indicator added in the original submit-button work relied solely on the 'validationstart' event, which only fires when the in-flight validation request count transitions from 0 to 1. That transition can happen during initial form load, where the indicator is deliberately suppressed, and it does not fire again for validations queued behind those still-pending requests — leaving the submit buttons disabled with no indicator.

Related Pull Requests

Changes

  • Show the indicator from 'beforevalidation' (the same event that disables the submit buttons) so the indicator and button state stay in sync by construction; the existing initial-load suppression is preserved since load-time validation does not fire 'beforevalidation'.
  • Clear the indicator whenever the buttons are recalculated with no validation requests in flight, since a validate cycle that produces no commands sends no requests and never fires 'validationcomplete', which would otherwise leave the indicator stuck.

… the submit buttons

The Validating... indicator added with the submit-button disabling relied solely on the 'validationstart' event, which only fires when the in-flight validation request count transitions from 0 to 1. That transition can happen during initial form load, where the indicator is deliberately suppressed, and it does not fire again for validations queued behind those requests — leaving the buttons disabled with no indicator. Show the indicator from 'beforevalidation' (the same event that disables the buttons) so the two stay in sync.

Also clear the indicator whenever the buttons are recalculated with no requests in flight, since a validate cycle that produces no commands sends no requests and never fires 'validationcomplete'.
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