-
Notifications
You must be signed in to change notification settings - Fork 23
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
Form field: announce error text when nested interactive is focussed #3746
Form field: announce error text when nested interactive is focussed #3746
Conversation
…sage-not-announced
// TODO: remove "!this.inputElement.readOnly" when ionic has fixed input click issue | ||
// https://github.com/ionic-team/ionic-framework/issues/22740 |
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.
Checking for the readOnly property complicates the logic a bit as the nestedInteractiveElement
can now also be a radio-group that does not have that property.
The linked issue is fixed by Ionic, so instead I tried to be a good scout and removed the logic.
I tested on a device, and inputs with readOnly cannot be focussed, while inputs without can be focussed with a single click as expected.
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.
Really nice job ! Just a single suggestion to make a base class for the formfieldcontrol. However i'm approving since that might be out of scope
@@ -0,0 +1,6 @@ | |||
import { EventEmitter } from '@angular/core'; | |||
|
|||
export interface FormFieldControl { |
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.
I ❤️ this
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.
Now that I'm looking at the hasError logic, I noticed its all the same lines of code. Maybe we should have a base FormFieldControl that all the other components extend?
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 idea, would prefer if we add it in another PR for just that 🚀
…sage-not-announced
Which issue does this PR close?
This PR closes #3680
What is the new behavior?
Does this PR introduce a breaking change?
Are there any additional context?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be merged to
develop
by Team Kirby.