mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix issue where Safari 14 wouldn't always autofocus the preset list (close #8003)
This commit is contained in:
@@ -132,6 +132,12 @@ export function uiPresetList(context) {
|
||||
|
||||
if (_autofocus) {
|
||||
search.node().focus();
|
||||
|
||||
// Safari 14 doesn't always like to focus immediately,
|
||||
// so try again on the next pass
|
||||
setTimeout(function() {
|
||||
search.node().focus();
|
||||
}, 0);
|
||||
}
|
||||
|
||||
var listWrap = selection
|
||||
|
||||
Reference in New Issue
Block a user