We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e4b1d commit fa1d0a4Copy full SHA for fa1d0a4
src/components/time-picker/time-picker.vue
@@ -259,7 +259,10 @@
259
const value = this.value
260
const minTime = this.minTime
261
// fix the value last choose was changed when time-picker is opened again
262
- if (value < Math.floor(minTime / MINUTE_TIMESTAMP) * MINUTE_TIMESTAMP) {
+ const comparativeTime = (this.min || this.min === 0)
263
+ ? +minTime
264
+ : Math.floor(minTime / MINUTE_TIMESTAMP) * MINUTE_TIMESTAMP
265
+ if (value < comparativeTime) {
266
this.selectedIndex = [0, 0, 0]
267
} else {
268
// calculate dayIndex
0 commit comments