We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it able to support close-on-click-model like element-plus dialog https://element-plus.org/en-US/component/dialog.html#attributes
The text was updated successfully, but these errors were encountered:
Hi @xiaoluoboding,
I think I found a way to solve this problem using onClickOutside function.
onClickOutside
Can I contribute the solution to the project?
Sorry, something went wrong.
Another solution would be adding a listener on a parent element like the mask. You can set this on the component where the palette is mounted.
This is what i did in my repository
document.body.addEventListener('click', (event) => { if (event.target.matches('[command-dialog-mask]')) { if (this.ui.show) this.hide() } })
No branches or pull requests
Is it able to support close-on-click-model like element-plus dialog https://element-plus.org/en-US/component/dialog.html#attributes

The text was updated successfully, but these errors were encountered: