Patternslib / Patterns

Library for quickly applying rich interaction patterns without the need to write any JavaScript.
http://patternslib.com
Other
103 stars 43 forks source link

Scrum 1670 inject submit child element #1187

Closed thet closed 8 months ago

thet commented 8 months ago

feat(pat inject): Support submit buttons with child elements.

Send the value of a submit button even if a child element of the submit button was clicked and not the submit button itself.

Note: This is not a fix for a regression, but a fix for a problem I found while working on: https://github.com/Patternslib/Patterns/pull/1186

Also, this improves support for form elements outside the form, connected via the input element's form attribute. But the current state of this support is yet unknown.

Ref: scrum-1670