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

fix: verify date input only on blur on calendar input, close calenda… #1574

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

flaminic
Copy link
Contributor

@flaminic flaminic commented Aug 7, 2024

Implements LIBS-652


Description

This PR temporally solves a tabbing problem, where tabbing away from the calendar input does not go into the calendar widget popup. We will look into proper accessibility of this component in a following PR.

This Pr also changes the component so that date validation is only done on blur, rather than on the input value changes


Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

All points above should be relevant for feature PRs. For bugfixes, some points might not be relevant. In that case, just check them anyway to signal the work is done.


Screenshots

supporting text

@flaminic flaminic requested a review from a team as a code owner August 7, 2024 14:45
@flaminic flaminic marked this pull request as draft August 7, 2024 14:45
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1574--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify August 7, 2024 14:49 Inactive
@flaminic flaminic marked this pull request as ready for review August 7, 2024 15:43
Copy link
Collaborator

@kabaros kabaros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 🥇 .. works as expected, fixes the onBlur issue, as well as performance and displaying error while typing 🙏🏿

@kabaros kabaros changed the title feat: verify date input only on blur on calendar input, close calenda… fix: verify date input only on blur on calendar input, close calenda… Aug 7, 2024
@flaminic flaminic merged commit 59f8e42 into alpha Aug 7, 2024
20 checks passed
@flaminic flaminic deleted the LIBS-652/change-calendar-input-blur-behaviour branch August 7, 2024 15:53
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 9.9.0-alpha.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 9.12.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants