Skip to content

Question/suggestion: Is there a way to implement a clear "X" button for the TimePicker? #6569

@FedeLacabaratz

Description

@FedeLacabaratz

I think it would be good to count with a clear "X" button as it is already implemented in inputSelects here for patternfly and I wonder if there is a way to do it? I tried to set up a custom button and force a setState (local state) to set my time string to null but it just won't work .

Maybe there is a onClear function or something I'm not seeing in the descripted props down below your web page?

I believe this could be a good enhancement if it doesn't exists. If it does could you please provide a small example of how to do this?

I'm using React v17.0.2

I look forward to hearing from you. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions