Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Add clear value button to popover date fieldtype #9478

Merged
merged 1 commit into from Feb 9, 2024

Conversation

jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Feb 7, 2024

A couple of clients have been unsure how to clear a popover date fieldtype, as it's not super obvious that you have to delete the text or open the popover and deselect the date.

This PR adds clear buttons:

Screenshot 2024-02-07 at 11 04 05

I wasn't 100% sure on where to place them. I think putting them in the fields looks tidiest, and it matches the select fieldtype's clear button, but it does feel a bit odd in time and range modes. At the moment the fields they appear in are the same ones that already clear the value when you delete the text, so there is some logic to it.

@jasonvarga jasonvarga merged commit 269f70e into statamic:4.x Feb 9, 2024
22 checks passed
@jacksleight jacksleight deleted the date-field-clear branch February 9, 2024 16:34
JohnathonKoster pushed a commit to JohnathonKoster/cms that referenced this pull request Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants