-
Notifications
You must be signed in to change notification settings - Fork 53
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
Call Taker Time Picker Support External Updates #933
Call Taker Time Picker Support External Updates #933
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please elaborate on what problem was supposed to be fixed. Also, this PR introduces a regression that prevents entering shorthand time notation such as "9p" (for 9 pm) or "1145" (military format), that regression should be addressed.
Good catch thanks! Let me know how f28dc50 works for you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix seems to work, however there remains one glitch when refreshing the page/pasting URL in the browser.
// Don't update if still typing | ||
if (timeRef.current !== document.activeElement) { | ||
setTypedTime( | ||
safeFormat(dateTime, timeFormat, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch thanks! Let me add an initial load update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try 3ccd8d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works much better, thanks for the changes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, any idea what the deal is with the useIntl()
hook being weird?
Description:
There were some regressions that got introduced here. This PR resolves these with a second state for the text input, separate from the actual time input.
PR Checklist: