Twitter Bootstrap 3 dropdown menu disappears when used with prototype.js

前端 未结 8 2116
长发绾君心
长发绾君心 2020-12-07 22:28

I have an issue when using bootstrap 3 & prototype.js together on a magento website.

Basically if you click on the dropdown menu (Our Products) & then click

8条回答
  •  醉酒成梦
    2020-12-07 23:05

    see http://kk-medienreich.at/techblog/magento-bootstrap-integration-mit-prototype-framework/.

    It's quite an easy fix to validate the namespace of the element clicked.

    Add a validation function to prototype.js:

    and after that, validate the namespace before the element will be hidden:

      hide: function(element) {
        element = $(element);
        if(!isBootstrapEvent)
        {
            element.style.display = 'none';
        }
        return element;
      },
    

提交回复
热议问题