mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(select): ionChange returns the value
This commit is contained in:
@ -409,6 +409,14 @@ export class Select extends BaseInput<string[]|string> implements AfterViewInit,
|
||||
return !deepEqual(this._value, val);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: REMOVE THIS
|
||||
* @hidden
|
||||
*/
|
||||
_inputChangeEvent(): any {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
@ -160,7 +160,7 @@ export class BaseInput<T> extends Ion implements CommonInput<T> {
|
||||
if (this._init) {
|
||||
this._debouncer.debounce(() => {
|
||||
assert(NgZone.isInAngularZone(), 'IonChange: should be zoned');
|
||||
this.ionChange.emit(this);
|
||||
this.ionChange.emit(this._inputChangeEvent());
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -292,6 +292,13 @@ export class BaseInput<T> extends Ion implements CommonInput<T> {
|
||||
return this._value !== val;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
_inputChangeEvent(): any {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
Reference in New Issue
Block a user