diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 235e27a01cc..f375c23169f 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1226,6 +1226,10 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } updatePlaceHolderForFloatingLabel(): void { + if(this._placeholder() !== null && this._placeholder() !== undefined) { + // We don't want to overwrite the placeholder if it's already set + return; + } const parentElement = this.el.nativeElement.parentElement; const isInFloatingLabel = parentElement?.classList.contains('p-float-label'); if (parentElement && isInFloatingLabel && !this.selectedOption) {