You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature in detail (code, mocks, or screenshots encouraged)
Basically I am running into an issue when I have options in a Popover that need to be initialized for the rest of the component to work.
It may be nice to have an option to render the content of a Popover/DropdownMenu etc. even if the menu is not open. This would be breaking so maybe it shouldn't be on by default. It could be called something like alwaysRender.
<!-- snip line 94 -->
{:elseif$open}
<divbind:this={el} use:melt={builder} {...$$restProps}>
<slot {builder} />
</div>
{:elseif!$open&&alwaysRender}
<!-- add `display: none;` or another method to render content without showing it -->
<divbind:this={el} use:melt={builder} {...$$restProps} style="display: none;">
<slot {builder} />
</div>
{/if}
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
For example I have context initialized at the root of a component. Then a popover containing its opions. Each option needs to check if its already selected to set an enabled at the root of the component. In this case enabled will not be set until the options have been rendered and popover has not rendered them until the user opens the menu.
The text was updated successfully, but these errors were encountered:
Describe the feature in detail (code, mocks, or screenshots encouraged)
Basically I am running into an issue when I have options in a Popover that need to be initialized for the rest of the component to work.
It may be nice to have an option to render the content of a Popover/DropdownMenu etc. even if the menu is not open. This would be breaking so maybe it shouldn't be on by default. It could be called something like
alwaysRender
.packages/bits-ui/src/lib/bits/popover/components/popover-content.svelte:
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
For example I have context initialized at the root of a component. Then a popover containing its opions. Each option needs to check if its already selected to set an
enabled
at the root of the component. In this case enabled will not be set until the options have been rendered and popover has not rendered them until the user opens the menu.The text was updated successfully, but these errors were encountered: