Skip to content

Commit d24c4f4

Browse files
committed
fix(select): ionChange returns the value
1 parent 9264a04 commit d24c4f4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/components/select/select.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,14 @@ export class Select extends BaseInput<string[]|string> implements AfterViewInit,
409409
return !deepEqual(this._value, val);
410410
}
411411

412+
/**
413+
* TODO: REMOVE THIS
414+
* @hidden
415+
*/
416+
_inputChangeEvent(): any {
417+
return this.value;
418+
}
419+
412420
/**
413421
* @hidden
414422
*/

src/util/base-input.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class BaseInput<T> extends Ion implements CommonInput<T> {
160160
if (this._init) {
161161
this._debouncer.debounce(() => {
162162
assert(NgZone.isInAngularZone(), 'IonChange: should be zoned');
163-
this.ionChange.emit(this);
163+
this.ionChange.emit(this._inputChangeEvent());
164164
});
165165
}
166166
}
@@ -292,6 +292,13 @@ export class BaseInput<T> extends Ion implements CommonInput<T> {
292292
return this._value !== val;
293293
}
294294

295+
/**
296+
* @hidden
297+
*/
298+
_inputChangeEvent(): any {
299+
return this;
300+
}
301+
295302
/**
296303
* @hidden
297304
*/

0 commit comments

Comments
 (0)