Skip to content

Commit 49d1912

Browse files
committed
Wrap focus() call on the input element in a timeout.
1 parent 44cc6bb commit 49d1912

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/cli-plugin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ var cliPlugin = {
153153
* Set focus on input element
154154
*/
155155
focusInputElement: function () {
156-
cliPlugin.inputElement.focus();
157-
cliPlugin.inputElement.focus();
156+
window.setTimeout(function () {
157+
cliPlugin.inputElement.focus();
158+
});
158159
},
159160

160161
/**

0 commit comments

Comments
 (0)