Skip to content

Commit

Permalink
passed null to updateModel when empty to properly update input element
Browse files Browse the repository at this point in the history
  • Loading branch information
mark7p committed Dec 18, 2024
1 parent 7f439a6 commit 22cdc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ export class Select extends BaseComponent implements OnInit, AfterViewInit, Afte
!matched && this.focusedOptionIndex.set(-1);

this.onModelChange(value);
this.updateModel(value, event);
this.updateModel(value || null, event);
setTimeout(() => {
this.onChange.emit({ originalEvent: event, value: value });
}, 1);
Expand Down

0 comments on commit 22cdc2f

Please sign in to comment.