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
I'm using a re-packaged version of radix-vue version 1.9.12, however the only relevant change I did was to export DismissableLayer by appending this line to packages/radix-vue/src/index.ts:
export * from './DismissableLayer'
Link to minimal reproduction
I can’t provide a minimal reproduction link since the re-packaged version is not available publicly, however the code example below should work in your dev environment after updating the import path to the DismissableLayer.vue component
Steps to reproduce
Use the following minmal reproduction vue component:
Click second button → second content appears, however the first content does not get dismissed
Reloading the example and clicking the buttons in the opposite order it works as expected:
Disclaimer: I know the DismissableLayer component is an internal component originally and I might be using it wrong. In fact the behaviour is correct when I don’t include the button in the dismissable layer:
thomasaull
changed the title
[Bug]: DismissableLayer keeps other layers open depending on the order in the DOM
[Bug]: DismissableLayer keeps other layers open depending on the order of interaction
Feb 14, 2025
Environment
I'm using a re-packaged version of
radix-vue
version1.9.12
, however the only relevant change I did was to exportDismissableLayer
by appending this line topackages/radix-vue/src/index.ts
:Link to minimal reproduction
I can’t provide a minimal reproduction link since the re-packaged version is not available publicly, however the code example below should work in your dev environment after updating the import path to the
DismissableLayer.vue
componentSteps to reproduce
Use the following minmal reproduction vue component:
Reloading the example and clicking the buttons in the opposite order it works as expected:
Disclaimer: I know the
DismissableLayer
component is an internal component originally and I might be using it wrong. In fact the behaviour is correct when I don’t include the button in the dismissable layer:however since the behaviour is inconsistent depending on the order of interaction, I feel like this might actually be a bug
Describe the bug
The
DismissableLayer
component does not detect clicks outside in this situationExpected behavior
The
DismissableLayer
component should detect clicks outside correctlyContext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: