Skip to content

Commit

Permalink
feat(QTime): do not reset min/sec when setting hour and sec when sett…
Browse files Browse the repository at this point in the history
…ing minute quasarframework#6306
  • Loading branch information
pdanpdan committed Nov 5, 2021
1 parent 36ae627 commit 10b20b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ui/src/components/time/QTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,21 +813,22 @@ export default Vue.extend({
__setHour (hour) {
if (this.innerModel.hour !== hour) {
this.innerModel.hour = hour
this.innerModel.minute = null
this.innerModel.second = null
this.__verifyAndUpdate()
}
},

__setMinute (minute) {
if (this.innerModel.minute !== minute) {
this.innerModel.minute = minute
this.innerModel.second = null
this.withSeconds !== true && this.__updateValue({ minute })
this.__verifyAndUpdate()
}
},

__setSecond (second) {
this.innerModel.second !== second && this.__updateValue({ second })
if (this.innerModel.second !== second) {
this.innerModel.second = second
this.__verifyAndUpdate()
}
},

__setAm () {
Expand Down

0 comments on commit 10b20b6

Please sign in to comment.