Closed 54mu3l closed 2 years ago
Hi,
This new behavior is on purpose because it was highly requested -- for example if user just wants to pick a different hour (and not go again to picking the minutes and seconds but maintain them).
As a result, the model is emitted when picking any subcomponent of time (hour, minute, second). The recommended way to go about this (the designed way) is to use the buttons slot like here: https://quasar.dev/vue-components/time#example--with-additional-buttons It will produce a deterministic behavior for your users.
Hi,
Thank you for your answer. Probably would've been nice to find a hint in the migration guide. ;)
What happened?
QTime behaves differently in Quasar v1 versus Quasar v2:
Quasar v1:
@input
emits after minutes are changedQuasar v2:
@update:model-value
emits after hours is changed and after minutes are changedI found this inconsistent behavior since I close the dialog with
this.$refs.timeProxy.hide();
on emit. Since I upgraded to Quasar v2 users are no longer able to choose minutes (dialog gets closed after hours, because QTime already emitted)What did you expect to happen?
I would expect QTime in Quasar v2 to behave like QTime in Quasar v1.
=> I would expect QTime to emit only after minutes are changed.
Reproduction URL
https://codepen.io/54mu3l/pen/oNEEzKL
How to reproduce?
==> Steps 4-6 are different in Quasar v2 versus Quasar v1
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response