-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style
prop of ComboboxOptions
is ignored
#3248
Comments
style
prop of portaled ComboboxOptions
is ignoredstyle
prop of ComboboxOptions
is ignored
Hey! This should be fixed by #3250, and will be available in the next release. You can already try it using:
|
@RobinMalfait I tried I'm thinking if you instead should fix the props merging functions to support object props and merging of them. You use |
@jussirantala the Can you create a minimal reproduction repo and share it here so that I can take a look? |
I got it working, thanks for the fix! |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v2.0.4
Describe your issue
If you use
style
prop which exists inComboboxOptions
types, everything you set there is ignored. This makes it impossible to changez-index
via props dynamically.I think you need to make
mergePropsAdvanced()
to support merging object props together: https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/utils/render.ts#L339The text was updated successfully, but these errors were encountered: