Skip to content

Commit

Permalink
removed depricated autoDisplayFirst
Browse files Browse the repository at this point in the history
  • Loading branch information
mark7p committed Dec 22, 2024
1 parent f565b51 commit 2c87baf
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 @@ -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) {
Expand Down

0 comments on commit 2c87baf

Please sign in to comment.