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

[Feature Request] Allow globalStack to be shared across multiple dynamically loaded Vuetify apps #20612

Open
SoheilHasankhani opened this issue Oct 23, 2024 · 0 comments

Comments

@SoheilHasankhani
Copy link
Contributor

Problem to solve

When dynamically loading Vuetify apps from different bundles, each bundle creates its own instance of the globalStack in packages/vuetify/src/composables/stack.ts. As a result, when a dialog is created in one bundle (Bundle A), it is unaware of the dialogs or overlays created in another bundle (Bundle B). This leads to stacking conflicts where overlays or other UI elements in one bundle may hide under dialogs in another bundle, breaking the expected z-index behavior.

This issue occurs because there is no mechanism to control or share the globalStack between multiple Vuetify apps across bundles.

Proposed solution

Introduce an option to pass a shared instance of globalStack when creating a Vuetify app. This would allow multiple dynamically loaded Vuetify apps to share a common globalStack and avoid the stacking conflicts currently observed.

Example implementation:

createVuetify({
  globalStack: sharedGlobalStackInstance
})

This change would allow for consistent handling of z-index and overlay stacking across dialogs and other components, even when apps are loaded from separate bundles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant