Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable button on submit #171

Merged
merged 1 commit into from
Dec 13, 2023
Merged

fix: disable button on submit #171

merged 1 commit into from
Dec 13, 2023

Conversation

hperl
Copy link
Contributor

@hperl hperl commented Dec 13, 2023

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact [email protected]) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

@hperl hperl self-assigned this Dec 13, 2023
Copy link
Member

@jonas-jonas jonas-jonas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😤

@aeneasr aeneasr merged commit c159a41 into main Dec 13, 2023
11 checks passed
jonas-jonas added a commit that referenced this pull request Dec 21, 2023
@jonas-jonas
Copy link
Member

This doesn't actually work. The reason is, that the click event fires before the submit event of the enclosing form, and disabling the button in the event stops event propagation.
There are a few solutions, but IMO we should just get this right in AX2 before spending any more time on this. The underlying issue is fixed either way, and this was purely cosmetic.

aeneasr pushed a commit that referenced this pull request Dec 21, 2023
@alnr
Copy link

alnr commented Dec 21, 2023

Wouldn't the fix just be to change click to submit?

@jonas-jonas
Copy link
Member

Wouldn't the fix just be to change click to submit?

Submit fires on the form, not the button itself.

@alnr
Copy link

alnr commented Dec 21, 2023

@jonas-jonas
Copy link
Member

yea, as I linked there are solutions, just don't want to spend time on getting this right, right now. PRs welcome ;)

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.

5 participants