Skip to content

Commit

Permalink
fix(popup): Fix cursor jump when focusing duration
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrekV authored and dooart committed Sep 17, 2019
1 parent 3da9ac2 commit d142fcd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/popup.js
Expand Up @@ -421,6 +421,16 @@ window.PopUp = {
.addEventListener('focus', (e) => {
PopUp.$tagAutocomplete.openDropdown();
});
document
.querySelector('#toggl-button-duration')
.addEventListener('focus', (e) => {
PopUp.stopDurationInput();
});
document
.querySelector('#toggl-button-duration')
.addEventListener('blur', (e) => {
PopUp.updateDurationInput(true);
});

PopUp.$projectAutocomplete.onChange(function (selected) {
const project = TogglButton.findProjectByPid(selected.pid);
Expand Down

0 comments on commit d142fcd

Please sign in to comment.