Skip to content
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

[3.x] ComboBox positioner z-index doesn't work #3077

Open
codercms opened this issue Dec 28, 2024 · 0 comments
Open

[3.x] ComboBox positioner z-index doesn't work #3077

codercms opened this issue Dec 28, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@codercms
Copy link

Current Behavior

The ComboBox property positionerZIndex has no effect because it's applied to the positioner element, but @zagjs/popper expects custom z-index to be applied to the first child element of the positioner:
https://github.com/chakra-ui/zag/blob/9ca9b9edd448071351271465629024ecb1eb80be/packages/utilities/popper/src/get-placement.ts#L185

https://github.com/chakra-ui/zag/blob/9ca9b9edd448071351271465629024ecb1eb80be/packages/machines/combobox/src/combobox.connect.ts#L27

<div {...api.getPositionerProps()} transition:fade={{ duration: 100 }} class="{positionerBase} {positionerZIndex} {positionerClasses}">

Expected Behavior

The positionerZIndex prop should be applied to the first child element of the positioner element, not to the positioner itself

Steps To Reproduce

No response

Link to Reproduction / Stackblitz

No response

More Information

No response

@codercms codercms added the bug Something isn't working label Dec 28, 2024
@codercms codercms changed the title [3.x] ComoBox positioner z-index doesn't work [3.x] ComboBox positioner z-index doesn't work Dec 28, 2024
@endigo9740 endigo9740 added this to the v3.0 (Next) milestone Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants