Skip to content

forms with data-remote + data-disable that use constraint validation are locked out when browser's "submit by pressing enter" behavior is used #219

Description

@tcannonfodder

I have a reproduction repo here: https://github.com/practical-computer/mrujs-constraint-validation-bug-proof-of-concept

Expected Behaviour

  • Similar to the normal browser behavior, when a form is attempted to be submitted, the button is not disabled if the form is invalid

Actual Behaviour

  • If the form is invalid according to the Constraint Validation API, the submit button is disabled and cannot be re-enabled.

Steps to Reproduce

See repo above for a focused, streamlined example

I'm actively debugging how to best solve this, but wanted to raise it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions