mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
feat(select): add event for when overlay is dismissed (#24099)
This commit is contained in:
@ -107,6 +107,11 @@ export class Select implements ComponentInterface {
|
||||
*/
|
||||
@Event() ionCancel!: EventEmitter<void>;
|
||||
|
||||
/**
|
||||
* Emitted when the overlay is dismissed.
|
||||
*/
|
||||
@Event() ionDismiss!: EventEmitter<void>;
|
||||
|
||||
/**
|
||||
* Emitted when the select has focus.
|
||||
*/
|
||||
@ -176,6 +181,7 @@ export class Select implements ComponentInterface {
|
||||
overlay.onDidDismiss().then(() => {
|
||||
this.overlay = undefined;
|
||||
this.isExpanded = false;
|
||||
this.ionDismiss.emit();
|
||||
this.setFocus();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user