From 2c87bafae85807569108693a5ee072c3eaafcb87 Mon Sep 17 00:00:00 2001 From: mark7p Date: Mon, 23 Dec 2024 05:58:09 +0800 Subject: [PATCH] removed depricated autoDisplayFirst --- 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..4aa11b5459c 100755 --- a/packages/primeng/src/select/select.ts +++ b/packages/primeng/src/select/select.ts @@ -1367,7 +1367,7 @@ export class Select extends BaseComponent implements OnInit, AfterViewInit, Afte } allowModelChange() { - return this.autoDisplayFirst && !this.placeholder() && (this.modelValue() === undefined || this.modelValue() === null) && !this.editable && this.options && this.options.length; + return !!this.modelValue() && !this.placeholder() && (this.modelValue() === undefined || this.modelValue() === null) && !this.editable && this.options && this.options.length; } isSelected(option) {