Bug Description
From version 2.14.0‑rc.7 up to 2.18.0, pressing the Enter key in a form does not trigger form submission if the form contains more than one input field. Submission works correctly only when there is a single input.
Affected Component
ui5-input in form
Expected Behaviour
Pressing Enter in any input should submit the form, regardless of the number of input fields.
Isolated Example
vue: https://playcode.io/vue-playground--019b7e90-e840-776f-91a2-bfe048137dc9
UI5 only: https://ui5.github.io/webcomponents/play/#eNrdU8GO0zAQ_RWvL9ut6hoOSCikCLGAxAkklgNSLq49bbw44yh2Wqqq_87YSVZZwa7EFSVSMm9m3ozfjM_cooFf6zo2jhdnjqoBXszBFdceI2AkuLwSgrVOnfad79GInXeGCfG2wvLqw5fbux9fP7KUlID0ZU7hflNxwIoTNj1lDcqQzegtQzw5SMayQB8XhYGdRTA37EyYsSGVKxh6hDcEXFJ-rpH9O99pMEJ75zuhzH0f4qNYVsqJ_78vVzYQFdO16gJEEv373SfxOus-utJsCT9YOLa-ixVn42QJPFoT642Bg9UgsrFiFm20yomglYPNy_WLkSzaSDW_qaZ1UMrBoqHKcar0u_XmxHJrRL1V-ue4L_kkBTuobiFEUO37B9dt8tyMBf6yZQJw3LQUQMI0zGPot41N3dM5gnewdn6_uB7Q64mst6-ExbaPVNb1qaHPySJvKR98_xgpUwNPtTq0SaPXnW0ji6c2UTXe9A5I89DpZCqL6_uQuYfALGESbpBQTvfoWTH4ZTVRzW7vhMyvrlzOWWprgC1lhbZJq8AqvpYzd-jbBOcGadf-zM0dPMp_RwrJI2y1JwSpZpC03lFmCQcifrn8BhcwieU
Steps to Reproduce
- Open the reproduction link.
- fill the input fields
- Focus on any input field.
- Press Enter.
- Observe that the form does not submit.
Log Output, Stack Trace or Screenshots
Actual Behavior:
Form submission only works if there is exactly one input. With multiple inputs, pressing Enter has no effect.
- Open the reproduction link.
- removed an input field from the code
- Fill the one and only field
- Press Enter.
- Submission works
Priority
None
UI5 Web Components Version
2.14.0‑rc.7 => 2.18.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
Bug Description
From version
2.14.0‑rc.7up to2.18.0, pressing the Enter key in a form does not trigger form submission if the form contains more than one input field. Submission works correctly only when there is a single input.Affected Component
ui5-input in form
Expected Behaviour
Pressing Enter in any input should submit the form, regardless of the number of input fields.
Isolated Example
vue: https://playcode.io/vue-playground--019b7e90-e840-776f-91a2-bfe048137dc9
UI5 only: https://ui5.github.io/webcomponents/play/#eNrdU8GO0zAQ_RWvL9ut6hoOSCikCLGAxAkklgNSLq49bbw44yh2Wqqq_87YSVZZwa7EFSVSMm9m3ozfjM_cooFf6zo2jhdnjqoBXszBFdceI2AkuLwSgrVOnfad79GInXeGCfG2wvLqw5fbux9fP7KUlID0ZU7hflNxwIoTNj1lDcqQzegtQzw5SMayQB8XhYGdRTA37EyYsSGVKxh6hDcEXFJ-rpH9O99pMEJ75zuhzH0f4qNYVsqJ_78vVzYQFdO16gJEEv373SfxOus-utJsCT9YOLa-ixVn42QJPFoT642Bg9UgsrFiFm20yomglYPNy_WLkSzaSDW_qaZ1UMrBoqHKcar0u_XmxHJrRL1V-ue4L_kkBTuobiFEUO37B9dt8tyMBf6yZQJw3LQUQMI0zGPot41N3dM5gnewdn6_uB7Q64mst6-ExbaPVNb1qaHPySJvKR98_xgpUwNPtTq0SaPXnW0ji6c2UTXe9A5I89DpZCqL6_uQuYfALGESbpBQTvfoWTH4ZTVRzW7vhMyvrlzOWWprgC1lhbZJq8AqvpYzd-jbBOcGadf-zM0dPMp_RwrJI2y1JwSpZpC03lFmCQcifrn8BhcwieU
Steps to Reproduce
Log Output, Stack Trace or Screenshots
Actual Behavior:
Form submission only works if there is exactly one input. With multiple inputs, pressing Enter has no effect.
Priority
None
UI5 Web Components Version
2.14.0‑rc.7 => 2.18.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration