I am using the navbar-search form. I want to have a modal "advanced search" that opens from a link in the navigation bar.
If I put a modal div in my tag in the navigation bar when the modal opens, it is located behind the dark area, which is usually located outside the modal window. Clicking anywhere closes the modal and darkened mask.
I can fix this by moving the modal div outside the navigation bar (and thus outside my form), but then it breaks my form functions. The advanced search method is supposed to function as an extension of the form field directly in the navigation bar, but if I use two different forms to fix a modal problem, the forms no longer work together. It makes sense?
If I enclose the entire navigation bar and my modal (which is located outside the navigation bar) in the tag, it works, but it does screw some navigation formatting, so I think this is not a very clean solution.
So, I need to either fix the modal display problem or make the situation in my form work properly (as in the case, linking the two forms together, without having a ton of duplicated markup for hidden fields, etc.).
Thanks for any ideas! Matt
Here is what I have now (that I went further and just adjusted css after that so that everything was in order). I donโt think it is semantically correct according to the way bootstrap navbar is supposed to be used, but my form works correctly and it is very important to me. :)
<form> <navbar></navbar> <modal></modal> </form>
source share