Open bear-bibeault opened 1 year ago
Feel free to submit a PR!
I have a PR tested and prepared, but I do not have permissions to push up to the repo. How may that be obtained?
If you do it in a branch on your fork it will let you submit it as a PR. I would check GitHub docs on how to do a PR
@userkks can you comment on this ticket so I can assign it to you?
Hi, @melloware, sure.
Can you guys check I think this issue is a duplicate of this one that already has a PR? https://github.com/primefaces/primereact/issues/4112
if so I will close 4112 as a duplicate...
Hi @melloware I think it is a different issue related to virtual scroller.
ok thanks for checking!
Describe the bug
For the dropdown component, the
max-height
style attribute is placed on thep-dropdown-items-wrapper
element, which makes it impossible to override either by classname or by props to the Dropdown component.Similar to the way the AutoComplete component is structured, this style attribute should be placed on the
p-dropdown-panel
element so that it can be overridden by use of thepanelStyle
prop for the DropDown component.As it stands, there appears to be no way to affect the styles applied to
p-dropdown-items-wrapper
, so the height of the dropdown panel cannot be changed either by the props to DropDown, or via classnames on the theme.As pointed out above, the
max-height
for the AutoCompleter panel is placed onp-autocomplete-panel
element, where is can be overridden by thepanelStyle
prop; Dropdown should be similarly structured.Reproducer
No response
PrimeReact version
9.2.3
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
all browsers
Steps to reproduce the behavior
panelStyle
prop to set a custommax-height
attribute (in the example code below, '400px').max-height
is correctly placed on thep-dropdown-panel
element, it is overridden by amax-height
attribute on thep-dropdown-items-wrapper
element, making it impossible to affect.Expected behavior
Similarly to the way the AutoCompleter component places the
max-height
on thep-autocomplete-panel
element where it can be overridden via thepanelStyle
prop, themax-height
for the DropDown element should be placed on thep-dropdown-panel
element so that it may be overridden via the DropDown'spanelStyle
.