ionic-framework
ionic-framework copied to clipboard
bug: ionFocus event in ion-select is fired when the popover disappears
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
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... -> https://github.com/ionic-team/ionic-framework/issues/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
Ionic:
Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.3.0
@angular-devkit/build-angular : 18.2.4
@angular-devkit/schematics : 18.2.4
@angular/cli : 18.2.4
@ionic/angular-toolkit : 12.1.1
Capacitor:
Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v20.16.0 (C:\Program Files\nodejs\node.exe)
npm : 10.8.1
OS : Windows 10
Additional Information
No response