Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix:16755 - dropdown emit event #16816

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
6 changes: 4 additions & 2 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1208,13 +1208,15 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
this.selectedOptionUpdated = true;
}

writeValue(value: any): void {
writeValue(value: any, emitEvent: boolean = true): void {
if (this.filter) {
this.resetFilter();
}

this.value = value;
this.allowModelChange() && this.onModelChange(value);
if (emitEvent && this.allowModelChange()) {
this.onModelChange(value);
}
this.modelValue.set(this.value);
this.updateEditableLabel();
this.cd.markForCheck();
Expand Down
Loading