qdate picker range problem
-
Hello, we are trying to solve a qdate picker range problem. Currently in the code pen demo (https://codepen.io/pen/?&editors=101) and our app, when in range mode, a single date can also be selected by simply clicking the date twice. Is there a way to prevent this or specify a minimum date range length? Thanks in advance everyone!
-
@swiftharbour answered you in discord, for others.
<q-date :value="model" range @input="v => { typeof v === 'object' && (model = v) }" .../>
. As for minimum date range you’ll have to provide a handler to yourinput
event listener and do some more checking there. -
Thank you so much @metalsadman, super helpful.
One more datepicker question if you have a moment, we are having issues with the date picker not fitting within the container below without much success in finding a fix. Thoughts? https://share.getcloudapp.com/p9urBeB7
https://stage.swiftharbour.com/#/guest/business/1/booking/16/Test Business - 001