pandora..findInput.focusInput might be undefined

This commit is contained in:
j 2023-06-27 19:29:47 +05:30
parent f65336c28d
commit 4ddb170bc9

View file

@ -854,7 +854,7 @@ pandora.ui.mainMenu = function() {
if (!pandora.hasDialogOrScreen()) {
if (ui._findState.key != 'advanced') {
setTimeout(function() {
pandora.$ui.findInput.focusInput(true);
pandora.$ui.findInput && pandora.$ui.findInput.focusInput(true);
}, 25);
} else {
pandora.$ui.filterDialog = pandora.ui.filterDialog().open();