Question about the modal component #1289
-
|
I have discovered the 'modal' component, and have started to try using it to make my webapp visually less dense. I have then tried to embed froms. They do display correctly, but when I try to send a query through the form, it doesn't actually go through. It sort of makes sense that it doesn't work as if I had opened the form in its corresponding page. I have copied the code almost straight from the website documentation and have done minimal alterations for visuals. I don't know how to actually send the query through the modal component, any guidance with that ? Any help is welcome |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
Hi ! Can you give a clean minimal reproduction of your issue ? |
Beta Was this translation helpful? Give feedback.

Thank you for the reproduction, this makes it very clear what you are talking about.
So, this is what is happening:
repro_1does not have anyactionproperty in its form component, so, by default, it submits the form to the current page. When you are visiting the page from repro_1, then the form is submitted to repro_1, where it is handled, it all works.When you embed
repro_1insiderepro_2, then the current page is repro_2, so it submits the form to repro_2, which does not handle it at all.One cleaner way to do it would be:
repro_1.sql