vnFocus: warning en vez de error al fallar

This commit is contained in:
Juan Ferrer Toribio 2017-02-08 17:34:39 +01:00
parent efac73f4bc
commit 1ef62d3e98
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export function directive() {
if(!input.matches(selector))
input = input.querySelector(selector);
if(!input)
throw new Error(`vnFocus: Can't find a focusable element`);
console.warn(`vnFocus: Can't find a focusable element`);
input.focus();