mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
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:
commit
b9dd654e7a
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,7 +411,12 @@ export class APISelect {
|
|||||||
} finally {
|
} finally {
|
||||||
this.setOptionStyles();
|
this.setOptionStyles();
|
||||||
this.enable();
|
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.slim.slim.search.input.focus();
|
||||||
|
}
|
||||||
|
|
||||||
this.base.dispatchEvent(this.loadEvent);
|
this.base.dispatchEvent(this.loadEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user