mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
ca13b8cbc2
commit
321c73557d
3 changed files with 41 additions and 13 deletions
|
@ -5,13 +5,17 @@ define([], function () {
|
|||
var element = view.querySelector('*[autofocus]');
|
||||
if (element) {
|
||||
focus(element);
|
||||
return element;
|
||||
} else if (defaultToFirst !== false) {
|
||||
element = getFocusableElements(view)[0];
|
||||
|
||||
if (element) {
|
||||
focus(element);
|
||||
return element;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function focus(element) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue