maplibre / maplibre-gl-geocoder

Geocoding for MapLibre
ISC License
53 stars 18 forks source link

_onKeyDown not working when map is inside custom web component #19

Open Miggets7 opened 2 years ago

Miggets7 commented 2 years ago

When using maplibre In a custom web component, the selection for the value doesn't work properly. The Active element in the shadow root isn't the input element itself. My recommendation would be to use the value of this._inputEl because there's already a reference to it. Screen Shot 2021-12-20 at 12 01 09

HarelM commented 2 weeks ago

@Miggets7 can you please open a PR if this is still relevant? I've refactored the code havily, it should be easier now to change the relevant code.