leaflet-control-geocoder icon indicating copy to clipboard operation
leaflet-control-geocoder copied to clipboard

Focus bug with search result dropdown

Open ginsterbusch opened this issue 5 years ago • 0 comments

We've got a visually customized geocoder control (ie. using CSS), which is moved to the center of the screen on desktop, but aside of that, its in its mint state. collapsed is set to false.

But whenever one gets multiple search results, the dropdown list seemingly doesnt close, when you're clicking on one the result items. I've tested this by adding a few watcher events on both .leaflet-control-geocoder-alternativesas well as the control container itself. What's actually happening is: It DOES close, but the focus seems to instantly jump back, and thus it reopens right afterwards.

As the map is located on a development site, I cannot provide a direct URL, aka only on request.

Environment: leaflet.js: v1.6 geocoder control: v1.13.0 (the one hosted at unpkg.com)

ginsterbusch avatar May 18 '20 04:05 ginsterbusch