Skip to content

Commit

Permalink
Merge pull request #62 from Anurag519Narula/timeAndDateIssue
Browse files Browse the repository at this point in the history
Time and date issue Resolved when updating
  • Loading branch information
Anshgrover23 authored Oct 12, 2024
2 parents 36ac091 + a9a37bb commit a646609
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 @@ -120,8 +120,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 a646609

Please sign in to comment.