Merge pull request #9735 from kkthxbye-code/fix-9734

Fixes #9734 & #9713 - Only set focus on select field search boxes if the select is open
This commit is contained in:
Jeremy Stretch 2022-07-15 08:14:46 -04:00 committed by GitHub
commit b9dd654e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -411,7 +411,12 @@ export class APISelect {
} finally {
this.setOptionStyles();
this.enable();
// Set the focus to the search field if the select is open
if (this.slim.slim.content.classList.contains("ss-open")) {
this.slim.slim.search.input.focus();
}
this.base.dispatchEvent(this.loadEvent);
}
}