Skip to content

Reactivity for enableTimePicker #1135

Open
@DellanX

Description

@DellanX

Is your feature request related to a problem? Please describe.
I have a form that I can specify a duration of an event. This event could be an All Day event (or not).

  • An all-day event does not need the time to be specified
  • A non-all-day event does need to have the time specified

I have recently started employing enableTimePicker to toggle the presence of the time range for an event. Unfortunately, the date-picker does not react to the user toggling the allDay boolean reference which is provided to the vue-datepicker.

Describe the solution you'd like
I'd prefer the enableTimePicker to support reactivity so that it can be toggled.

Describe alternatives you've considered
Right now I switched my approach to rendering two instances of vue-datepicker. One has enableTimePicker enabled, the other does not. Both are conditionally rendered based upon the value of allDay

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageThe issue is not reviewed by the maintainersenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions