I have a webpage made by angularjs
and bootstrap
, but not ui-bootstrap
.
There is a drop-down list
and an iframe
. The problem is that when the drop-down list is open, clicking on the iframe will not automatically close the drop-down list.
I followed this answer and added the follows:
$(window).on('blur',function() { $('.dropdown-toggle').parent().removeClass('open'); } );
Now, clicking on the iframe does close the drop-down list. However, just after closing, clicking on the drop-down button will NOT re-open the list; we have to click on somewhere else than the iframe or click on the drop-down button once, then clicking again on the drop-down button opens the list.
Sorry that I cannot reproduce the problem in a playground, but it seems a common problem that "only the second click opens a drop-down list". I tried to remove data-toggle="dropdown"
, but it did not help.
Does anyone know what I could try to fix the problem?