-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
[maybe bug] Modal without trigger still creates trigger top left in the layout #3206
Comments
Adding class "hidden" to trigger base as workaround solves the issue. |
This is reasonable. Right now if {#if trigger}
<button {...triggerProps} class="{triggerBase} {triggerBackground} {triggerClasses}" {disabled} type="button">
{@render trigger?.()}
</button>
{/if} I'll do this for Popover, Tooltip and Modal. Combobox isn't a viable use case. |
Could be worth adding notes for |
I think this should be obvious. If you don't use the feature, the styles won't affect anything. |
@endigo9740 this can be closed. |
Man I'm so ready to have auto-close back once we launch v3 :D |
Current Behavior
I am migrating to V3 and some of my actions, which call modal/dialog, are in popover. I initially put Modal with trigger and content. But when I select an action and close the popover, I get a warning "something with window/frame is null" and my modal/dialog does not appear. So I implemented my own modal stack/overlay in a similar way as it was with the V2, and my modals don't have "trigger" defined.
+layout.svelte (root)
I also need this to show an error if it happens on form action.
When such 'trigger'-less modals appear, there also appears the trigger element in the html, which is empty but it does has size and shifts the whole content (under the dim).
If I show more modals (e.g. form, and then the error, more such elements appear).
So my request is if 'trigger' is not provided, then this html elements should not appear.
Thank you
Expected Behavior
Trigger html elements should not appear for the 'trigger'-less modals
Steps To Reproduce
Link to Reproduction / Stackblitz
No response
More Information
No response
The text was updated successfully, but these errors were encountered: