Skip to content

Commit

Permalink
Fixed date and time Fields when updating any entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Anurag519Narula committed Oct 12, 2024
1 parent 876c62d commit 8a9c24b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ function updateTodo(index) {

// Clear the input fields
inputNameElement.value = '';
inputDateElement.value = '';
inputTimeElement.value = '';

// Set default date and time
setDefaultDateTime();

// Change the update button back to an add button
const addButton = document.querySelector('.js-add-button');
Expand Down

0 comments on commit 8a9c24b

Please sign in to comment.