Could be issue with stacking contexts and portals created by underlying Radix components. The primitives have props that we can use to change behaviour when the callbacks are used (i.e. onPointerDownOutside)
Upgrade Select and Dialog to the latest versions
Upgrade and test usage of the interaction of these two once upgraded in the DS
Resolve conflicting clashing versions
Radix components have clashing version dependencies, we could override these (thread)
Describe the bug π Reported by the community in the Open Beta for v2. Clicking outside a dropdown within an open modal, closes the modal.
π§ Potential solutions
Make use of the available Select and Dialog props
Could be issue with stacking contexts and portals created by underlying Radix components. The primitives have props that we can use to change behaviour when the callbacks are used (i.e.
onPointerDownOutside
)Upgrade Select and Dialog to the latest versions
Upgrade and test usage of the interaction of these two once upgraded in the DS
Resolve conflicting clashing versions
Radix components have clashing version dependencies, we could override these (thread)
To Reproduce Steps to reproduce the behavior:
Select
(staying inside the modal)Expected behavior Clicking outside a
Select
within a modal should not close the modal. This does not happen in the production version of the plugin.Screenshots or Screencasts
Production
https://github.com/tokens-studio/figma-plugin/assets/114073780/f3361797-86f8-4c98-937d-6bed9b50ebc5
V2 (running locally)
π No console errors https://github.com/tokens-studio/figma-plugin/assets/114073780/4aeb29f3-9359-4381-9a64-23dd3b59cc07