Insert, remove and reorder intents do not work with button type = button #482
Answered
by
edmundhung
hauptrolle
asked this question in
Q&A
-
Describe the bug and the expected behaviorWhen adding Conform version1.0.1 Steps to Reproduce the Bug or Issue
What browsers are you seeing the problem on?No response Screenshots or VideosNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
edmundhung
Feb 22, 2024
Replies: 1 comment 2 replies
-
All form intent are designed to work before JS. Making it type button means it will not work the way it is designed. Why do you wanna restrict it? Anyway, if you really have to do this, you can always setup a onClick handler and trigger the form intent directly: <button type="button" onClick={() => form.reset()} /> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
hauptrolle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All form intent are designed to work before JS. Making it type button means it will not work the way it is designed. Why do you wanna restrict it?
Anyway, if you really have to do this, you can always setup a onClick handler and trigger the form intent directly: