Skip to content

Form submission via Enter key broken from v2.14.0‑rc.7 to v2.18.0 when multiple inputs exist #12863

@adhamelgindy

Description

@adhamelgindy

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

  1. Open the reproduction link.
  2. fill the input fields
  3. Focus on any input field.
  4. Press Enter.
  5. 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.

  1. Open the reproduction link.
  2. removed an input field from the code
  3. Fill the one and only field
  4. Press Enter.
  5. 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

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions