Skip to content

Commit

Permalink
Merge pull request #350 from geek-nikhil/Fix/Edit-display-button-impr…
Browse files Browse the repository at this point in the history
…oved

edit bug solved
  • Loading branch information
Kritika30032002 authored Jan 21, 2024
2 parents 5e4699d + 46fff13 commit 486f7c8
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 486f7c8

Please sign in to comment.