Skip to content

Commit a406fcc

Browse files
pdanpdanrstoenescu
authored andcommitted
QDatetime - restart from start view after canClose (quasarframework#1735)
1 parent 15feec9 commit a406fcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/datetime/QDatetime.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ export default {
176176
canClose: () => {
177177
if (this.isPopover) {
178178
this.hide()
179+
// go back to initial entry point for that type of control
180+
// if it has defaultView it's goint to be reapplied anyway on focus
181+
if (!this.defaultView) {
182+
this.$refs.target.setView()
183+
}
179184
}
180185
}
181186
}

0 commit comments

Comments
 (0)