From 22cdc2f3b63dec97bf8132db2c10fc1a19c04c61 Mon Sep 17 00:00:00 2001 From: mark7p Date: Wed, 18 Dec 2024 21:50:24 +0800 Subject: [PATCH] passed null to updateModel when empty to properly update input element --- packages/primeng/src/select/select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primeng/src/select/select.ts b/packages/primeng/src/select/select.ts index b84f0ed5a9f..16a87dff08a 100755 --- a/packages/primeng/src/select/select.ts +++ b/packages/primeng/src/select/select.ts @@ -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);