in Education by
I have three components - app, sideNav and wallForm. In the app header, I have a button that drops down the sideNav. The sideNav has an add button which opens the wallForm modal. This is an ng2-bootstrap modal. The drop down menu loads fine, but when I click on the add button, the modal loads and the screen greys out (disabled), but the modal does not show in the front. I know it has loaded because I can inspect the element in browser developer tools. I tried setting the z-index of the modal to a very high number, much higher than that of the drop down menu and that didn't help. How do I get the modal to behave as it should i.e., display on top? Code below: <!--app.html-->
<!-- Nav bar -->
Run code snippetExpand snippet <!-- sidenav.html --> <!--Modal dialog--> <!--this is the modal body--> Run code snippetExpand snippet Run code snippetExpand snippet JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Well I cant tell you why bootstrap drop down is causing you an issue. I also suffered from bootstrap drop down issues as well. however here is a possible work around. try using an angular plugin for your drop down, I use this one https://github.com/pleerock/ng2-dropdown. For the modal I also use an angular2 plugin because of bootstrap issues, ng2-modal found here https://www.npmjs.com/package/ng2-modal Here is a working plunker of the final product plunkr

Related questions

0 votes
    How can we create a dropdown menu in Bootstrap?...
asked Apr 4, 2021 in Education by JackTerrance
0 votes
    Which of the following class in Bootstrap is used to create a dropdown menu? .dropdown .select .select-list None of the above...
asked Feb 28, 2021 in Technology by JackTerrance
0 votes
    I have a Bootstrap modal dialog which contains a form. The modal dialog contains a submit and a cancel ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    Which of the following plugin in Bootstrap is used to create a modal window? popup alert modal window...
asked Mar 2, 2021 in Technology by JackTerrance
0 votes
    Which of the following plugin in Bootstrap is used to create a modal window? popup alert modal window...
asked Feb 28, 2021 in Technology by JackTerrance
0 votes
    I am trying to change an image depending on what option is selected in a drop down menu. I am ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    Which of the following Bootstrap button styles indicates that caution should be taken with an action? a).btn-link b).btn-danger c).btn-warning d).btn-info...
asked Apr 28, 2021 in Technology by JackTerrance
0 votes
    Which of the following class in Bootstrap is used to create a large button? .btn-xl .btn-lrg .btn-large .btn-lg...
asked Mar 2, 2021 in Technology by JackTerrance
0 votes
    Which of the following class in Bootstrap is used to create a large button? .btn-xl .btn-lrg .btn-large .btn-lg...
asked Feb 28, 2021 in Technology by JackTerrance
0 votes
    Which of the following Bootstrap button styles makes the button size extra small? Please select the correct options from below (a).btn-lg (b). btn-block (c).btn-xs (d).btn-sm...
asked Dec 11, 2020 in Education by Editorial Staff
0 votes
    There is one issue with the angular material with IE-11 and IE-edge browsers, When the body content ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I am using VBA in most of my office 365 applications for many years now. Last week an error ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    It's a UI path sequence. I am trying to read some URLs from an Excel file.Launch browser Go to URL from file ... save it as a file. Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    calculate cost of goods sold from the following : indirect expenses 15200, direct expenses 18600, sales 120000, ... stock 28000 Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    A combination lock on a suitcase has 3 wheels, each labelled with nine digits from 1 to 9. If an opening ... the right combination ? Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
...