Skip to content
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

Any thoughts on supporting <dialog />? #419

Open
flexchar opened this issue Jan 1, 2024 · 2 comments
Open

Any thoughts on supporting <dialog />? #419

flexchar opened this issue Jan 1, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@flexchar
Copy link

flexchar commented Jan 1, 2024

It seems that the dialog element is widely supported and it brings benefits being a native element. Any thoughts if this could be supported within the project?

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

@flexchar flexchar added the question Further information is requested label Jan 1, 2024
@hunterliu1003
Copy link
Member

@flexchar
Thank you to bring this up! I've been thinking about supporting composable like useDialog() based on <dialog /> for a while.
Basically, useModal() and VueFinalModal.vue kind of implementing the similar behaviors to <dialog /> element.
Recently I will start implementing v5 and put useDialog() and VueFinalDialog.vue into the new feature list.

@flexchar
Copy link
Author

To be completely honest, after I played with both I figured that <dialog /> is essentially an alternative rather than a base. The only problem is that one cannot control where the models will be based - that's what <ModelsContainer /> does now.

However other than that, I'd say that it may completely replace the need for libraries in many cases and will allow reclaim maintainers their time. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants