diff --git a/src/lib/paginator/paginator.html b/src/lib/paginator/paginator.html index 4d28fb721d43..d17a48dafb75 100644 --- a/src/lib/paginator/paginator.html +++ b/src/lib/paginator/paginator.html @@ -10,7 +10,7 @@ + (selectionChange)="_changePageSize($event.value)"> {{pageSizeOption}} diff --git a/src/lib/select/select.spec.ts b/src/lib/select/select.spec.ts index fc5cb615fcf2..4f86b1f9b25e 100644 --- a/src/lib/select/select.spec.ts +++ b/src/lib/select/select.spec.ts @@ -2686,7 +2686,7 @@ describe('MatSelect', () => { const spy = jasmine.createSpy('change spy'); fixture.detectChanges(); - instance.select.change.subscribe(() => spy(instance.selectedFood)); + instance.select.selectionChange.subscribe(() => spy(instance.selectedFood)); expect(instance.selectedFood).toBeFalsy(); diff --git a/src/lib/select/select.ts b/src/lib/select/select.ts index ac42bbebb416..647307c491d6 100644 --- a/src/lib/select/select.ts +++ b/src/lib/select/select.ts @@ -433,43 +433,18 @@ export class MatSelect extends _MatSelectMixinBase implements AfterContentInit, /** Event emitted when the select panel has been toggled. */ @Output() readonly openedChange: EventEmitter = new EventEmitter(); - /** Event emitted when the select has been opened. */ - @Output('opened') - get _openedStream(): Observable { - return this.openedChange.pipe(filter(o => o), map(() => {})); - } + /** Event emitted when the select has been opened. */ + @Output('opened') readonly _openedStream: Observable = + this.openedChange.pipe(filter(o => o), map(() => {})); /** Event emitted when the select has been closed. */ - @Output('closed') - get _closedStream(): Observable { - return this.openedChange.pipe(filter(o => !o), map(() => {})); - } - - /** - * Event emitted when the select has been opened. - * @deprecated Use `openedChange` instead. - * @deletion-target 6.0.0 - */ - @Output() readonly onOpen: Observable = this._openedStream; - - /** - * Event emitted when the select has been closed. - * @deprecated Use `openedChange` instead. - * @deletion-target 6.0.0 - */ - @Output() readonly onClose: Observable = this._closedStream; + @Output('closed') readonly _closedStream: Observable = + this.openedChange.pipe(filter(o => !o), map(() => {})); /** Event emitted when the selected value has been changed by the user. */ @Output() readonly selectionChange: EventEmitter = new EventEmitter(); - /** - * Event emitted when the selected value has been changed by the user. - * @deprecated Use `selectionChange` instead. - * @deletion-target 6.0.0 - */ - @Output() readonly change: EventEmitter = this.selectionChange; - /** * Event that emits whenever the raw value of the select changes. This is here primarily * to facilitate the two-way binding for the `value` input.