matestack / matestack-ui-bootstrap

As an extension for Matestack Ui Core, Matestack Ui Bootstrap ships all you need to build beautiful, reactive UIs in pure Ruby and smart CRUD components based on Bootstrap v5. Don't think about styling anymore and just create admin or application UIs faster than ever before!
https://docs.matestack.io/matestack-ui-bootstrap
MIT License
11 stars 4 forks source link

Multiple filters can not be submitted on `bs_smart_collection` #7

Open jonasjabari opened 3 years ago

jonasjabari commented 3 years ago

If more than one filter is applied to bs_smart_collection, the filters are not submitted on ENTER as it's happening when only applying one filter

aaron-contreras commented 1 year ago

This is still an open issue and present in version 3+. Can I assign this to myself and work on it? @keithrowell @jonasjabari

I've actually developed a fix/workaround for this in a client project and can port it over to the gem. The W3C spec explains that this is natural behavior of forms:

Form Submission

... ...

When there is only one single-line text input field in a form, the user agent should accept Enter in that field as a request to submit the form.

A Stackoverflow question was also asked about this and the accepted answer directed to the above section of the W3C spec.

jonasjabari commented 1 year ago

@aaron-contreras yes please assign it to yourself and have fun working on it :)