v0.15.1 Prevent Prompting of Time when Selecting Just a Date in QDatetime Component
-
Good day. Is there a way to prevent v0.15.1 QDateTime from displaying the time selection after clicking a date? It’s kind of annoying sometimes when I just want to click on the date but would still require me to change the time. v0.14.9 works this way and will only display the time selection when the time is clicked.
-
Yes, use
type="date"
. -
@leopiccionia Nope, that’s not it.
The thing is, I have a QDateTime component. On v0.14.9 when you select a date, it does select a date without prompting to select a time. So if you also want to change the time, you’ll click the time on the left part of the component.
But now on v0.15.1 using QDateTime component when you select a date, it will prompt you to select a time.
-
Same with me, may be this bug on v0.15, I hope master Razvan can fix it immediately
-
Guess I will resort on using a separate datepicker and another timepicker for now. Thanks.
-
@cheebhodh please open an issue https://github.com/quasarframework/quasar
-
Could any of you please provide a jsfidle example of your issue? Thanks!
-
Now that I understand the problem: it’s probably intended, but the
type="datetime"
behavior has indeed changed.I’d suggest to file an issue to either revert to previous behavior or make it optional via prop.
-
@benoitranque The example in the docs should suffice. But if you need another example, I’ll provide a jsfiddle for it. Thanks
-
@Max Seems that @cheebhodh is still offline. I’ll open an issue in github in place of him.
-
https://jsfiddle.net/ktp5ao5m/5/
@benoitranque to set date, we must select date on datepicker before we click button “set” -
@cheebhodh I have not yet open an issue for some reason. If you want, you might open one on https://github.com/quasarframework/quasar. Thanks
-
@cheebhodh Thanks for the js-fiddle. I’ve checked it but the code there says
type="date"
. I suggest you change it totype="datetime"
for the issue to be replicated. Thanks -
@snowdrop the result is same
-
@cheebhodh using
type="date"
and clicking the date will not display the prompting of time because the component is set to have dates only.The issue I’ve posted can only be replicated by using
type="datetime"
because it prompts for the time whenever you clicked on a date on the calendar component. -
@cheebhodh do you want to open an issue on https://github.com/quasarframework/quasar regarding this? If not, I’ll create one. Thanks
-
I’ve open an issue regarding this. Check it out here: https://github.com/quasarframework/quasar/issues/1663.