-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Date of birth - Fix the errors
functional is not functional
#19852
Comments
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
@kbecciv Can you please give an expected behaviour of the fix the errors button click? |
@kbecciv , So the focus actually remains on the DOB Arrows because that's where the customer left off. Here you can see that I've clicked the right arrow and my focus remains there. I believe this is working as intended. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Date of birth - Fix the errors functional is not functional What is the root cause of that problem?With other form component, we will need to pass the What changes do you think we should make in order to solve the problem?To make it can be focused when pressing // pass the innerRef
export default withLocalize(
React.forwardRef((props, ref) => (
<NewDatePicker
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
innerRef={ref}
/>
)),
);
// update TextInput:
<TextInput
ref={(el) => {
this.inputRef = el;
if (_.isFunction(this.props.innerRef)) {
this.props.innerRef(el);
}
}} What alternative solutions did you explore? (Optional)N/A |
I see your point @bogoroh. Given that the input is no longer selectable I'm not sure what 'fix the errors' should do. Maybe nothing? |
@alexpensify we removed the input field here, so I'm not sure what the expected behaviour would be here. |
@Julesssss I've already answered here -> #15290 (comment)
@alex-mechler's comment here
|
Thanks @Julesssss-- tomorrow, I'll start a discussion to confirm the next steps here. |
I agree there's no real action to take, but it seems a bit weird to keep the error message clickable in that case. |
This is a kind of edge case, this pretty much happens on any form with one field error where the fix the errors is clickable only once. After first clicking the field got a focus post that the fix the errors is unclickable. What we can do is remove/hide the error with refactor if needed |
@Julesssss with the last feedback, do you think we update the title and the original issue? |
Hmm, so maybe we just do nothing here. Rather than having a specific exclusion for this error. |
With this feedback, I'm going to close this GH. Thank you to everyone who participated in the conversation. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing #18577
Action Performed:
Expected Result:
Cursor is focused on a date field with an error
Actual Result:
Nothing happens
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.20.1
Reproducible in staging?: yes
Reproducible in production?: n/a
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://platform.applause.com/services/links/v1/external/9a2e4a34deabd1a0c80f94af7a1bfb058ea9d69c406e0eca6d1b99fef3c8b009
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: