Skip to content

When using model-auto, enable requiring an end time even when only one date is selected #1265

@Rohaq

Description

@Rohaq

Is your feature request related to a problem? Please describe.
I want to be able to use model-auto so users can easily create a 1 day or multiple day event, but I also want to require the user to enter both a start and end time, even when clicking on a single day.

Currently the only way to make an end time display is by double clicking on a single day to set the start and end of the range to the same day, which isn't very intuitive for the user.

Describe the solution you'd like
Some kind of requireEndTime configuration option under time-config or range to force the end time element to always display even when a day is single-clicked under model-auto would be ideal. I can't see anything similar in the current documentation.

Describe alternatives you've considered
I'm considering manipulating the model attached to the component to set an end time when the model is initially clicked, but this feels like a bit of a hack.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions