mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix alphaPicker
This commit is contained in:
parent
443ce5a747
commit
5799a877a9
1 changed files with 3 additions and 4 deletions
|
@ -126,13 +126,12 @@ import 'material-icons';
|
|||
let alphaFocusedElement;
|
||||
let alphaFocusTimeout;
|
||||
|
||||
function onAlphaFocusTimeout() {
|
||||
|
||||
function onAlphaFocusTimeout(instance) {
|
||||
alphaFocusTimeout = null;
|
||||
|
||||
if (document.activeElement === alphaFocusedElement) {
|
||||
const value = alphaFocusedElement.getAttribute('data-value');
|
||||
this.value(value, true);
|
||||
instance.value(value, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -177,7 +176,7 @@ import 'material-icons';
|
|||
|
||||
if (alphaPickerButton) {
|
||||
alphaFocusedElement = alphaPickerButton;
|
||||
alphaFocusTimeout = setTimeout(onAlphaFocusTimeout, 600);
|
||||
alphaFocusTimeout = setTimeout(onAlphaFocusTimeout.bind(null, this), 600);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue