Skip to content

Conversation

@figuerom16
Copy link
Contributor

@figuerom16 figuerom16 commented Sep 5, 2025

Issue: #32
Competing PRs: #33 #34
Difference from PRS: Correct issue early by setting "submit" event to elt.__fixi.evt and fx-trigger
Outcome: Native default behavior for form submissions (eg form button click includes name and value on send).

Native Form Submit Buttons https://developer.mozilla.org/en-US/docs/Glossary/Submit_button:

  • <button> (its default type is "submit")
  • <input type="submit">
  • <input type="image">

Add CSS selectors for forms to pick submit event:

  • If form button doesn't have type button and reset then it is a submit event. (Can't do type=submit since no attribute is often specified.)
  • If form input has type submit or image then it is a submit event.

@NReib
Copy link

NReib commented Sep 6, 2025

I applied this change lokally and it does not work for the reason I gave in Issue #32

Did you maybe also have an fx-action on the form during your tests or explicitly set fx-trigger to click on the button?

@figuerom16
Copy link
Contributor Author

figuerom16 commented Sep 6, 2025

@NReib You're right it doesn't work without fx form attributes.
There isn't a good way for parent detection with CSS selectors from the element either.

@figuerom16 figuerom16 closed this Sep 6, 2025
@figuerom16 figuerom16 deleted the upRead branch September 8, 2025 00:57
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.

2 participants