Ajax-Call triggerd second modal #1425
-
Help WantedI created a modal form with many tab´s and data table´s. Testcasethe Div´s are outside of any other content:
(coupled is from one of the tests - its the same without them)
the second modal is called from a click on a icon, that calls a PHP-function on the backend:
in the corresponding Ajax-Funtion:
I try the examples with attach, but i don't want attach based on a button (i like to give some parameters to the callback). |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
I have not looked at your code but I definitely have nested modals in operation in plain JS. Did you set allowMultiple option to True ? I also have a note as follows in my code: |
Beta Was this translation helpful? Give feedback.
-
@tomlp please provide a jsfiddle for easier investigation , we cannot guess out of code fragments especially if it's probably PHP related. |
Beta Was this translation helpful? Give feedback.
-
i will try to make my first jsfiddle... |
Beta Was this translation helpful? Give feedback.
-
yes - i made it and it makes exact the wrong thing that makes me crazy :) |
Beta Was this translation helpful? Give feedback.
-
by the way : i use fomantic-ui 2.8.4 :) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the jsfiddle. |
Beta Was this translation helpful? Give feedback.
-
oh goodness - i copy-paste it from the example and did not recognised the div-modal inside :( the combination of two div-modal is the tricky part ... checked - learned :) |
Beta Was this translation helpful? Give feedback.
-
That behavior is unfortunately a very old SUI issue. It's covered by #1393 already and needs a bigger change in the code. However, I am closing this issue here, because it's purpose is solved. |
Beta Was this translation helpful? Give feedback.
Thanks for the jsfiddle.
You wrapped the second modal in another div which also had the
modal
class set.I removed the wrapper and it's working as expected then :) See https://jsfiddle.net/nxsuatwe/