-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Focus flashes on input field when opening a modal from a popover #24820
Comments
@raymer thanks for reporting this issue. I'm able to replicate against your reproduction. It does look like our focus trapping behavior is setting focus on the first form control and then immediately changing focus to the root We will track this as a bug and prioritize. |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
@liamdebeasi I will try as soon as possible and report back. Thanks! |
@liamdebeasi tested and verified it resolves the issue. Thanks again! |
…5481) resolves #24127, resolves #24820 Co-authored-by: MarkChrisLevy <[email protected]>
Thanks for the issue. This has been resolved via #25481, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
When opening a modal from a popover click event, if that modal has form fields, the first one is given immediate focus, then immediately blurred, causing a flashing effect.
Expected Behavior
The input field in a modal opened by a popover does not receive focus then immediately blur.
Steps to Reproduce
Create an inline popover that has a child with a click event that opens a modal that contains an input field.
Page with popover
Modal.vue
Code Reproduction URL
https://github.com/raymer/ionic-bug
Ionic Info
Ionic:
Ionic CLI : 5.4.16 (C:\Users\rayme\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/vue 6.0.1
Capacitor:
Capacitor CLI : 3.2.4
@capacitor/core : 3.4.1
Utility:
cordova-res : not installed
native-run : 1.5.0
System:
NodeJS : v16.13.1 (C:\Program Files\nodejs\node.exe)
npm : 8.3.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: