You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
triggers the onFormSubmit method to be called when pressing the enter key.
I'm currently trying to trigger the Enter in a failing test but it's somewhat complicated 🤔
Seems like manually pressing Enter triggers a submit event on the form element.
If I do it via triggerKeyEvent() it doesn't work.
edit: It seems like the issue is that Multiple adds the input inline while the other one places the search input into the dropdown wormhole.
edit2: It seems like this is the expected behavior for any input inside a form element. @cibernox do you think it would be a good idea to prevent the enter event inside the power-select trigger from bubbling up?
The text was updated successfully, but these errors were encountered:
It seems like using
PowerSelectMultipleWithCreate
inside a form with a submit listener will trigger the submit action when using theEnter
key.This doesn't seem to happen when wrapping a regular
PowerSelectWithCreate
with the form.e.g. in the dummy app:
triggers the
onFormSubmit
method to be called when pressing the enter key.I'm currently trying to trigger the
Enter
in a failing test but it's somewhat complicated 🤔Seems like manually pressing Enter triggers a
submit
event on the form element.If I do it via
triggerKeyEvent()
it doesn't work.edit: It seems like the issue is that
Multiple
adds the input inline while the other one places the search input into the dropdown wormhole.edit2: It seems like this is the expected behavior for any input inside a form element.
@cibernox do you think it would be a good idea to prevent the enter event inside the power-select trigger from bubbling up?
The text was updated successfully, but these errors were encountered: