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
This seems to be the source of a problem I'm experiencing, too. If I have a map and geocoder inside a form and I hit return in one of the other form fields, the focus is stolen back to the geocoder and the submit event doesn't get fired. Any way to disable this focus stealing?
If you try navigating via keyboard using Tab key, once you reach the geocoder element you can't focus the next button or the previous (using Shift + Tab) because the focus is trapped.
Activity
timchambers commentedon Aug 17, 2018
This seems to be the source of a problem I'm experiencing, too. If I have a map and geocoder inside a form and I hit return in one of the other form fields, the focus is stolen back to the geocoder and the submit event doesn't get fired. Any way to disable this focus stealing?
andrewharvey commentedon Aug 17, 2018
Does anyone have an minimally reproducing example?
3zzy commentedon Aug 19, 2018
@andrewharvey Here: https://jsfiddle.net/iaezzy/zevaw734/8/
If you try navigating via keyboard using Tab key, once you reach the geocoder element you can't focus the next button or the previous (using Shift + Tab) because the focus is trapped.
jdaudier commentedon Aug 27, 2018
I have the same bug. Does anyone have a workaround for this while we are waiting for a fix?
3zzy commentedon Aug 27, 2018
@jdaudier Here's what I'm doing temporarily (jQuery):
jdaudier commentedon Aug 31, 2018
@3zzy Thanks! It works for me but I didn't need to add the event on focus. Just curious about your reason for that.
scottsfarley93 commentedon Mar 15, 2019
It looks like we could tackle this by changing the
suggestionslibrary with a relatively minor PR that prevents trappingtabevents.Specifically, changing https://github.com/tristen/suggestions/blob/gh-pages/src/suggestions.js#L59 and https://github.com/tristen/suggestions/blob/gh-pages/src/suggestions.js#L67 so that
keyCode==9checks are no longer cases in the switch statements.I'm not sure if this will cause any other unintended consequences though. I'll have to dig in a little more.
scottsfarley93 commentedon Mar 21, 2019
This was done in #220 and will be fixed in version 4.