Vuetify: 1.5.11
Vue: 2.6.10
Browsers: Chrome 73.0.3683.86
OS: Windows 10
The dialog should remain open. The dialog should only be closed if the mouse button is both pressed and released outside the dialog.
The dialog is closed.
The click handler here is on the v-app element, which is receiving both the up and down events. Lots of refactoring would be needed I think.
This make selecting text from a text field with the mouse inside a dialog near impossible, as you can try here: https://codepen.io/anon/pen/QPRBJz?editors=1010
Since the text field is near the edge, your cursor will naturally fall outside the dialog when you try to select text, and this will cause the dialog to close.
This problem is observed on my version 1.5.16, can this be somehow temporarily solved?
@gsjen @blalan05 This has a workaround https://codepen.io/diazemiliano/pen/MNvEwb
Basically if you set the v-dialog as persistent and you have a @mousedown handler for the dialog content you can do some logic to achieve what you want.
@gsjen @blalan05 This has a workaround https://codepen.io/diazemiliano/pen/MNvEwb
Basically if you set thev-dialogaspersistentand you have a@mousedownhandler for thedialog contentyou can do some logic to achieve what you want.
I add a @mouseup event listener to avoid an additional mouse click outside of the dialog when closing the dialog.
Also, the v-select within v-dialog must set to attach to avoid unintended click:outside event firing.
Bringing this up as it remains an issue
Most helpful comment
This make selecting text from a text field with the mouse inside a dialog near impossible, as you can try here: https://codepen.io/anon/pen/QPRBJz?editors=1010
Since the text field is near the edge, your cursor will naturally fall outside the dialog when you try to select text, and this will cause the dialog to close.