Skip to content

Commit

Permalink
feat: select text for edit on click
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Mar 22, 2018
1 parent 7b6ea97 commit e707f8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app-src/scripts/edit-on-click/edit-on-click-d.js
Expand Up @@ -68,6 +68,9 @@
inputEl = $element.find('input');
inputEl[0].focus();
inputEl[0].value = modelCopy;
setTimeout(() => {
inputEl[0].select();
});
});
};

Expand Down

0 comments on commit e707f8c

Please sign in to comment.