Skip to content

Commit

Permalink
fix data-duration attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tik-217 committed Nov 6, 2024
1 parent 54dfd0d commit 5cddeeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/html-duration-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@

const getInitialDuration = (inputBox) => {
const duration = getDurationAttributeValue(inputBox, 'duration', 0);
const secondsValue = durationToSeconds(duration);
return applyMinMaxConstraints(inputBox, secondsValue);
return applyMinMaxConstraints(inputBox, duration);
};
/**
* Initialize all the pickers
Expand Down

0 comments on commit 5cddeeb

Please sign in to comment.