mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
Fix chrome deadlock when opening some select fields
This commit is contained in:
parent
250265c3d9
commit
664962dc4d
BIN
netbox/project-static/dist/netbox.js
vendored
BIN
netbox/project-static/dist/netbox.js
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -411,13 +411,12 @@ export class APISelect {
|
||||
} finally {
|
||||
this.setOptionStyles();
|
||||
this.enable();
|
||||
this.base.dispatchEvent(this.loadEvent);
|
||||
|
||||
// Set the focus to the search field if the select is open
|
||||
if (this.slim.slim.content.classList.contains("ss-open")) {
|
||||
// Set the focus to the search field if the select is open and no already in focus
|
||||
if (this.slim.data.contentOpen && document.activeElement !== this.slim.slim.search.input) {
|
||||
this.slim.slim.search.input.focus();
|
||||
}
|
||||
|
||||
this.base.dispatchEvent(this.loadEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user