Errores solucionados
This commit is contained in:
parent
558ad8f393
commit
38c75a6fcd
|
@ -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`);
|
||||
|
|
Loading…
Reference in New Issue