diff --git a/client/core/src/directives/focus.js b/client/core/src/directives/focus.js index 096531fcc..4d36df5ee 100644 --- a/client/core/src/directives/focus.js +++ b/client/core/src/directives/focus.js @@ -12,7 +12,7 @@ export function directive() { input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement; - if(input && !isInput) + if(!isInput) input = input.querySelector('input, textarea'); if(!input) throw new Error(`vnFocus: Can't find an input element`);