-
main.js
test.vue
When I close the dialog, the console will output “default”. If remove Is it a bug or my wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
How are you closing the dialog, and what do you expect the return value to be? If you cancel the dialog by pressing the escape key or clicking the background, the When I try using the dialog it correctly reports "default" when canceled and either "cancel" or "ok" when the buttons are pressed. |
Beta Was this translation helpful? Give feedback.
-
@asyncLiz This situation seems to only occur on Vue. Example: https://github.com/mai1202/mw-test |
Beta Was this translation helpful? Give feedback.
-
Any progress here? |
Beta Was this translation helpful? Give feedback.
-
I've upgraded @material/web to the latest version. Then I tried using without Vue, as this:https://github.com/mai1202/mw-test/blob/main/without-vue/index.html . It works. |
Beta Was this translation helpful? Give feedback.
I filed #5409 to fix it. Should have a fix out shortly, it's pretty straightforward. You can install with
@material/web@nightly
tomorrow.