Replies: 1 comment
-
Obviously there are many, many factors that could be at work here, and I'm not a JS expert. What I'm not sure, is when the dropdown in the first example appears to break out of the modal, is it because it is already outside the modal? Does filament perhaps break the DOM elements apart when building a form within its own modal, but not when building the same (or similar) form inside someone else's modal? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure where the problem lies with this one - my code, different model libaries, some settings, or a limitation. Best to show with some examples.
In the first instance I have a model provided by
filament
invoked directly by clicking on a table cell. It contains a filament form, wrapped in whatever filmanent puts its modal forms into, and looks like this:When I go into the muti-select item, it drops down a list that breaks out of the model:
And that's great. It does it's thing, and works fine.
Now, I also want to provide a model form from a button outside of the filament table. In this case filament can't help, except for providing a form builder to put into the model.
So I have a button, and that pops up a model component using the wire-elements model package, and that contains the form:
I'm using the same filament form builder, so this is the same multi-select drop-down as the previous model (provided by filament). This time when I open the dropdown, it gets hidden within the modal, it's masked, cannot break out of the modal - whatever is happening.
So, what is happening? Is is a DOM thing, or a CSS thing? The important question is: does wire-elements/modal support anything inside the modal breaking out of that modal? Is it even possible?
If it's not possible, can the modal be made to expand when the drop-down appears? I notice it does change size when elements are added and removed, so it's doing something like that already.
Not looking for a ready-baekd soluton (yet!) but just trying to understand what I'm missing and what I need to look at to see what is happening.
Beta Was this translation helpful? Give feedback.
All reactions