Skip to content

Commit

Permalink
Merge pull request #15866 from willmca/origin/issues=#15762-p-dropdow…
Browse files Browse the repository at this point in the history
…n-open-style-missing-from-dropdown

Fixed #15762 p dropdown open style missing from dropdown
  • Loading branch information
cetincakiroglu authored Jun 27, 2024
2 parents a3af939 + 62e1b3b commit 052e05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/components/dropdown/dropdown.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ describe('Dropdown', () => {

const dropdownPanel = fixture.debugElement.query(By.css('.p-dropdown-panel'));
expect(dropdownPanel).toBeTruthy();
expect(container.className).toContain('p-dropdown-open');
expect(dropdown.overlayVisible).toBeTrue();
});

Expand Down
3 changes: 2 additions & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV
'p-focus': this.focused,
'p-inputwrapper-filled': this.modelValue() !== undefined && this.modelValue() !== null && !this.modelValue().length,
'p-inputwrapper-focus': this.focused || this.overlayVisible,
'p-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled'
'p-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled',
'p-dropdown-open': this.overlayVisible
};
}

Expand Down

0 comments on commit 052e05f

Please sign in to comment.