Skip to content

Commit 0ab299f

Browse files
committed
fix(listbox): fixed an issue where the order of emitting change events messed up the tests.
1 parent b91291e commit 0ab299f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk-experimental/listbox/listbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
286286
this._registerWithPanel();
287287

288288
this.optionSelectionChanges.subscribe(event => {
289+
this._emitChangeEvent(event.source);
289290
this._updateSelectionModel(event.source);
290291
this.setActiveOption(event.source);
291-
this._emitChangeEvent(event.source);
292292
this._updatePanel(event.source);
293293
});
294294
}

0 commit comments

Comments
 (0)