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

[v3][Popover] Allow use of forceMount #2804

Open
jonathan-lws opened this issue Nov 29, 2024 · 0 comments
Open

[v3][Popover] Allow use of forceMount #2804

jonathan-lws opened this issue Nov 29, 2024 · 0 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@jonathan-lws
Copy link

jonathan-lws commented Nov 29, 2024

For what version of Nuxt UI are you suggesting this?

v3.0.0-alpha.9

Description

Sometimes, we don't want the content of the Popover to be unmounted when the popover gets closed.
For exemple, when building a search UI with Algolia and vue-instantsearch, i want to place refinement lists in Popovers.
If you apply some filters and then close the Popover, the refinement list is unmounted and the search state is lost.

This is an exemple but i think there is other cases where you don't want the content to be unmounted.
Radix provides a forceMount prop for the Popover.Content component.

Why is this forceMount prop not available in content props for nuxt/ui ?
It looks like it's done on purpose so i may miss something.

Thank you :)

Additional context

No response

@jonathan-lws jonathan-lws added enhancement New feature or request triage labels Nov 29, 2024
@benjamincanac benjamincanac added the v3 #1289 label Nov 29, 2024 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants