fix(datetime): allow calendar navigation in readonly mode; disallow keyboard navigation when disabled - #28336
Merged
Conversation
mapsandapps
marked this pull request as ready for review
October 12, 2023 13:35
mapsandapps
requested review from
averyrousseau,
liamdebeasi and
sean-perkins
as code owners
October 12, 2023 13:35
averyrousseau
suggested changes
Oct 12, 2023
liamdebeasi
suggested changes
Oct 17, 2023
mapsandapps
marked this pull request as draft
October 18, 2023 15:03
mapsandapps
marked this pull request as ready for review
October 18, 2023 15:53
liamdebeasi
suggested changes
Oct 19, 2023
liamdebeasi
left a comment
Contributor
There was a problem hiding this comment.
We spoke offline about using the toBeDisabled assertion instead for many of these checks. This will let us consolidated tests and simplify the tests we end up keeping.
The implementation works well! I saw a few opportunities to clean up the code, but nothing major.
averyrousseau
suggested changes
Oct 23, 2023
liamdebeasi
approved these changes
Oct 24, 2023
liamdebeasi
left a comment
Contributor
There was a problem hiding this comment.
I'm fine with the changes as-is, but I would like to make sure one of the changes was intentional.
sean-perkins
suggested changes
Oct 25, 2023
brandyscarney
removed their request for review
October 25, 2023 21:27
sean-perkins
approved these changes
Oct 27, 2023
averyrousseau
approved these changes
Oct 30, 2023
averyrousseau
left a comment
Contributor
There was a problem hiding this comment.
Thanks for sorting through everything here!
Co-authored-by: Amanda Johnston <90629384+amandaejohnston@users.noreply.github.com>
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.
Issue number: #28121
What is the current behavior?
It is not possible to navigate between months when ion-datetime is in readonly mode. This means that if there are multiple dates selected, the user cannot browse to view them all.
Also, keyboard navigation is not prevented in
readonlyordisabledmode where it should be.What is the new behavior?
When
readonly:When
disabled:Known bug:
prefers-wheelwhendisabled. This bug existed prior to this PR. I created FW-5408 to track this.Does this introduce a breaking change?
Other information