Vuepic / vue3-date-time-picker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
158 stars 13 forks source link

Setting the enable-time-picker prop to false will prevent the flow options from working #114

Closed TheStantonator closed 2 years ago

TheStantonator commented 2 years ago

Describe the bug Setting the enable-time-picker prop to false will prevent the flow options from working. This prevents the developer from efficiently using it in date only mode

To Reproduce Steps to reproduce the behavior:

  1. Set up a calendar with the following props:
    • :flow="['year', 'month', 'calendar'
    • :enable-time-picker="false"
  2. Open the picker
  3. Note that the calendar opens first, completely disregarding the flow.
  4. Removing the enable-time-picker prop will cause the picker to open the year first

Expected behavior I should be able to remove the time picker whilst keeping the ability to define a flow

Desktop (please complete the following information):

Additional context I was able to work around it by forcefully hiding the timepicker button with CSS