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
Calling a function when the mouse onClick event fires works easily, however this does not work when using keyboard navigations, specifically with enter to select a drop down option. I have tried different event handlers but non seems to be working based on my use-case.
The reason I am doing it within the combobox.option element is because that is where my data is destructured and where place_id is used.
Are there any other ways other than the onClick event handler to call my function? Below is the current combobox, the idea behind it is that when I click on or select with return key, it calls my function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Calling a function when the
mouse onClick
event fires works easily, however this does not work when using keyboard navigations, specifically with enter to select a drop down option. I have tried different event handlers but non seems to be working based on my use-case.The reason I am doing it within the
combobox.option
element is because that is where my data is destructured and whereplace_id
is used.Are there any other ways other than the
onClick
event handler to call my function? Below is the current combobox, the idea behind it is that when I click on or select withreturn
key, it calls my function.Beta Was this translation helpful? Give feedback.
All reactions