mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(select): emit the ionSelect option when selecting an option
This commit is contained in:
@ -145,7 +145,8 @@ export class AlertCmp {
|
||||
label: input.label,
|
||||
checked: !!input.checked,
|
||||
disabled: !!input.disabled,
|
||||
id: 'alert-input-' + this.id + '-' + index
|
||||
id: 'alert-input-' + this.id + '-' + index,
|
||||
handler: isPresent(input.handler) ? input.handler : null,
|
||||
};
|
||||
});
|
||||
|
||||
@ -237,12 +238,20 @@ export class AlertCmp {
|
||||
input.checked = (checkedInput === input);
|
||||
});
|
||||
this.activeId = checkedInput.id;
|
||||
|
||||
if (checkedInput.handler) {
|
||||
checkedInput.handler(checkedInput);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cbClick(checkedInput: any) {
|
||||
if (this.enabled) {
|
||||
checkedInput.checked = !checkedInput.checked;
|
||||
|
||||
if (checkedInput.handler) {
|
||||
checkedInput.handler(checkedInput);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user