Repository navigation
feat(pat-date-picker): Introduce new behavior mode "editable". - #1172
Merged
Merged
Conversation
thet
marked this pull request as draft
July 10, 2023 16:32
thet
force-pushed
the
date-picker-improvements
branch
from
July 11, 2023 08:00
73f4035 to
1a3eed0
Compare
With `behavior: editable`, the pattern changes the `type="date"` field to `type="text"` when it initializes. Users can type a date in `YYYY-MM-DD` format or choose one from the JavaScript calendar. Set `i18n` to the URL of a JSON file to translate the calendar. The browser treats typed values as plain text for constraint validation.
With `behavior: editable`, the pattern shows a text field for the date and a separate browser time field. Users can type the date in `YYYY-MM-DD` format or choose one from the JavaScript calendar. The `i18n` option translates the calendar. The browser treats the visible date field as plain text for constraint validation. The original `datetime-local` field still holds the combined value for validation and submission.
thet
force-pushed
the
date-picker-improvements
branch
from
November 25, 2026 00:31
1a3eed0 to
0135fb5
Compare
thet
marked this pull request as ready for review
November 25, 2026 00:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change 2026-11-25: From behavior mode
keyboardto behavior modeeditable. That's a better fit.Ref: plone/mockup#1328