Fix issue where Safari 14 wouldn't always autofocus the preset list (close #8003)

This commit is contained in:
Quincy Morgan
2020-09-17 10:13:45 -04:00
parent 057b80f6dc
commit 673ea19b46

View File

@@ -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