-
-
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] Dialog is closed by clicking on Snackbar #7310
Comments
Workaround is to add |
It happens also in normal (not fullscreen) dialogs https://codepen.io/anon/pen/zgGLgK which makes the workaround not so great in this case |
Any update on this? The workaround (persistent prop) doesn't work for me either. |
I'm not finding this to be true (#9378). How are you getting this to work? I believe this bug is a regression, since the problem doesn't exist in my v1.3 project. |
This comment has been minimized.
This comment has been minimized.
@185driver there's another issue at play as well. Conflict between |
This comment has been minimized.
This comment has been minimized.
@MajesticPotatoe Thanks. Indeed, that was noted in the issue I posted. I wasn't aware that |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Bless @jacekkarczmarczyk for removing the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm having the same issue here, |
@FekihTaoufik interesting observation, my snackbars are indeed created elsewhere and triggered to display via an event. |
It seems that anything that has a fixed position and clickable, does trigger the close:outer event of any |
I'm facing the very same issue, any help would be greatly appreciated. |
Same issue here, with the dialog full screen component. The workaround by @185driver works but not with fullscreen props ... 😢 |
Found a temporary fix here that worked for me. It is not the marked answer but works nicely. https://stackoverflow.com/questions/49627750/vuetify-closing-snackbar-without-closing-dialog "For anyone still looking for a good solution: add |
@NavidMitchell This is a fantastic workaround. Thanks for sharing it. This issue affects my apps daily (due to snackbars with clickable buttons) so your solution is a welcome relief. I modified the markup slightly after some testing, but it works the same, in case someone is interested:
|
Damn that's sneaky. Note this will cause the dialog to have a higher z-index than the snackbar if the snackbar is open first. |
Is the higher z-index issue alleviated by setting it to 1000 as @NavidMitchell suggested? |
No, you should set z-index on the dialog instead. |
this would not be practical either, i was facing this issues and thought i could just add persist on the dialog until users started wondering why pressing escape on the keyboard dose not close the dialog, my solution now is remove the persistent from the dialog and also remove the close button from the snackbar so it timeout by it self |
Some observations after upgrading to v2.3.0...here's an updated codepen too:
|
|
This issue is still not resolved? I have case where I use snackbar as notification alert, so some action is done on modal and it's closed, snackbar is shown and starting to count - closed automatically after 5sec. If in meantime any other modal is opened, it closes in the same moment when snackbar disappears and cannot be open anymore because modal |
Repro in Vuetify 3.3.3: https://play.vuetifyjs.com/#... |
Why has this been closed? It's still reproduceable in the latest nightly build: https://play.vuetifyjs.com/#... |
This issue references v1.5 of Vuetify. If it's still relevant in Vuetify 3, create a new issue please. |
Versions and Environment
Vuetify: 1.5.14
Vue: 2.6.10
Browsers: Chrome 74.0.3729.108
OS: Windows 10
Steps to reproduce
Expected Behavior
Only Snackbar closes
Actual Behavior
Dialog and Snackbar close
Reproduction Link
https://codepen.io/jloewe/pen/dEjGMw (v1.5.14)
https://codepen.io/jloewe/pen/ZNjQrr (v2.0.0-alpha.20)
The text was updated successfully, but these errors were encountered: