Skip to content

Remove date from text field should get us back to starting state (datepicker not filled in) #26

@paulsonkoly

Description

@paulsonkoly

As far as I understand the current interface there is no way for a user to remove a date selection. When we start the date might not be picked (Nothing) which seems to be a supported concept as the example shows

  case dateEvent of
                        Picked newDate ->
                            Just newDate

and https://ellie-app.com/3WbsRpXXzJ5a1 does it, but once a date is once picked there is no way to get back to this state. The Picked dateEvent is a Date not a Maybe Date, and if the user clears the text field and leaves empty text the Picked is not fired. FailedInput is fired as the empty text is not parsed as a date, but then one cannot distinguish between non-filled in valid forms versus filled in invalid ones.

It's debatable if this is a bug, feels more like a design issue, but one would expect the starting state to be reachable again with user interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions