Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-nikhil authored Jan 19, 2024
1 parent 5e4699d commit 46fff13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ function handleEditItem(e) {
document.getElementById("description").value = taskDescription;
document.getElementById("maintitle").innerText = "Edit your tasks below :";
editItem = e.target;
document.documentElement.scrollTop = 0;
document.getElementById('item').focus();
}

//actual logic after editing a task and for adding a task (gets called after edit button click, onChnage text fileds, date, priority)
Expand Down

0 comments on commit 46fff13

Please sign in to comment.