diff --git a/src/mapml/layers/MapLayer.js b/src/mapml/layers/MapLayer.js index 10cdf5268..6ccf7b6d7 100644 --- a/src/mapml/layers/MapLayer.js +++ b/src/mapml/layers/MapLayer.js @@ -439,7 +439,7 @@ export var MapMLLayer = L.Layer.extend({ } mapEl.removeChild(e.target.closest("fieldset").querySelector("span").layer._layerEl); elem = elem ? root.querySelector(".leaflet-control-attribution").firstElementChild: elem = root.querySelectorAll('input')[fieldset]; - setTimeout(() => elem.focus(), 800); // a timeout is set so "pressed remove layer" is announced first + elem.focus(); }, this); let itemSettingControlButton = L.DomUtil.create('button', 'mapml-layer-item-settings-control', layerItemControls);