Errores solucionados
This commit is contained in:
parent
1ef62d3e98
commit
72a9068c80
|
@ -13,8 +13,11 @@ export function directive() {
|
|||
|
||||
if(!input.matches(selector))
|
||||
input = input.querySelector(selector);
|
||||
if(!input)
|
||||
|
||||
if(!input) {
|
||||
console.warn(`vnFocus: Can't find a focusable element`);
|
||||
return;
|
||||
}
|
||||
|
||||
input.focus();
|
||||
|
||||
|
|
Loading…
Reference in New Issue