You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Marius-Romanus This is expected behavior (source code). When the overlay is active, we create a focus trap in the overlay to prevent focusing elements behind the popover, so when the popover closes, we need to re-focus the select since that was the last focused element before the popover was opened.
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
v8.x
Current Behavior
The ionFocus event in ion-select is fired when the popover disappears.
https://ionicframework.com/docs/api/select#events
PS: I discovered this while trying to manually fix this issue... -> #19296
Expected Behavior
It should only be triggered on focus.
Steps to Reproduce
https://stackblitz.com/edit/angular-gmxghz?file=src%2Fapp%2Fexample.component.html,src%2Fapp%2Fexample.component.ts
Code Reproduction URL
https://stackblitz.com/edit/angular-gmxghz?file=src%2Fapp%2Fexample.component.html,src%2Fapp%2Fexample.component.ts
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: