Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-02-07 17:52:11 +01:00
parent 558ad8f393
commit 38c75a6fcd
1 changed files with 1 additions and 1 deletions

View File

@ -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`);