$nextTick was used, otherwise the query selector is too fast for the DOM
$el.querySelector('input') is used on $refs.password, because the <input-password> tag splits into a <div> and <input> tag where ref="password" is put on the <div> tag, while select() is needed on the <input> tag
As described in #429
$nextTick
was used, otherwise the query selector is too fast for the DOM$el.querySelector('input')
is used on$refs.password
, because the<input-password>
tag splits into a<div>
and<input>
tag whereref="password"
is put on the<div>
tag, whileselect()
is needed on the<input>
tag