Skip to content

Commit

Permalink
Merge pull request #181 from tik-217/fix/htmlDurationPickerValue
Browse files Browse the repository at this point in the history
fix data-duration attribute
  • Loading branch information
nadchif authored Dec 3, 2024
2 parents 54dfd0d + 5cddeeb commit 7c8ff2b
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 7c8ff2b

Please sign in to comment.