-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Bug Report] vMenu dropdown doesn't alwasy correctly close when having multiple apps in one page #4157
Comments
There is no official support for having multiple |
Safari doesn't support click bubbling on the body element, so everything must be within a v-app. If that isn't possible then you should add the |
Thank you for the fast replies! Unfortunately I really need the 'multiple v-app' approach because unfortunately we'll have script tags in the body and simply don't want one major vueJS app. We are creating a modular CMS which consists of parts in separate git repo's / projects so we don't use webpack/vue-cli to create one big app bundle. Unfortunately the data-app approach doesn't entirey work, because then I have to place it outside of the v-app's and the styling of the second dropdown is not correct (missing v-app relating styling or something..) TLDR: |
@nickgr6 Excellent solution, thanks! |
Versions and Environment
Vuetify: 1.1.0-beta.0
Vue: 2.5.16
Browsers: Chrome 66.0.3359.181
OS: Linux x86_64
Steps to reproduce
Click on dropdown #1
Then click on lower half of the screen.
Expecting that dropdown #1 closes, but does not.
When clicking upper half of the screen the dropdown does close.
Expected Behavior
Expecting that dropdown #1 closes even if clicking outside of the current 'app scope'
Same goes for dropdown #2.
Actual Behavior
Expecting that dropdown #1 closes, but does not, only when clicking in scope of the first 'app' on the page with multiple apps.
Reproduction Link
https://codepen.io/anon/pen/NzKajM
The text was updated successfully, but these errors were encountered: