?
avatar tampham86
tampham86
19 Aug 2014

Hi all,

I have a problem when i use bootstrap select. Its conflict with mootools-core. Has anyone encountered this problem and solutions? Plz help me. Thanks!

avatar tampham86 tampham86 - open - 19 Aug 2014
avatar brianteeman
brianteeman - comment - 19 Aug 2014

With the amount of information or to be more accurate the complete lack of information it is impossible to help you

avatar zero-24 zero-24 - close - 19 Aug 2014
avatar Bakual Bakual - close - 19 Aug 2014
avatar Bakual
Bakual - comment - 19 Aug 2014

I'm closing this issue because it lacks proper information. It also doesn't sound like a bug report but more like a support request, which should be directed at the forums, google groups or stackexchange.

avatar Bakual Bakual - change - 19 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-19 13:15:07
avatar Bakual Bakual - close - 19 Aug 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?
avatar kriswebdev
kriswebdev - comment - 15 May 2016

It's clear that bootstrap-select doesn't work at all with MooTools core.

Just import MooTools in any bootstrap-select example script <head> and you'll see:

  <script type="text/javascript" src="MooTools-Core-1.6.0-compat.js"></script>
  <script type="text/javascript" src="MooTools-More-1.6.0-compat.js"></script>

MooTools core rewrites Element.implement({hide: function(). We can still overwrite it again.

However, it also rewrites Element.Event which clearly conflicts with bootstrap-select $.fn.triggerNative = function (eventName) that badly tries to play with MooTools events.

Well, I give up with this. MooTools is the issue.

avatar Bakual
Bakual - comment - 15 May 2016

There is no "Bootstrap select". Maybe you're talking about the "Chosen" select?

avatar kriswebdev
kriswebdev - comment - 15 May 2016

I'm speaking of bootstrap-select and Google brought me here. Isn't Joomla using this module?

Btw, I'm not totally done with it. For people having issues with MooTools, don't use MooTools compatibility version! Unlike its name suggests, it's not compatible with third-party libraries. It's made to be backward compatible, like before MooTools resolved conflicts with third-party libraries.

avatar Bakual
Bakual - comment - 15 May 2016

Nope, Joomla core doesn't use this one. It uses https://harvesthq.github.io/chosen/.

Add a Comment

Login with GitHub to post a comment