You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dropdown component has a scroll-height property, which sets the height of the item list directly on the element. This has higher specificity than setting it from a preset:
Since the scroll-height property defaults to 200px, it even sets the height when the developer doesn't specify it, overriding the class from the presets. I think the easiest way to "fix" this, is to remove the max-h-[200px] from the presets and just always use the scroll-height property. A warning about this in the docs would be a nice addition too.
The dropdown component has a
scroll-height
property, which sets the height of the item list directly on the element. This has higher specificity than setting it from a preset:You can see the default class from the lara preset here: https://github.com/primefaces/primevue-tailwind/blob/main/presets/lara/dropdown/index.js#L105
Since the
scroll-height
property defaults to 200px, it even sets the height when the developer doesn't specify it, overriding the class from the presets. I think the easiest way to "fix" this, is to remove themax-h-[200px]
from the presets and just always use thescroll-height
property. A warning about this in the docs would be a nice addition too.The text was updated successfully, but these errors were encountered: