Materialize: Modal conflict with bootstrap

Created on 26 Jul 2015  Â·  6Comments  Â·  Source: Dogfalo/materialize

Modals are using class .modal, which bootstrap uses too. So if the page also includes bootstrap, the modals won't display materially. +

All 6 comments

I wouldn't recommend the use of bootstrap together with Materialize, as there are a few feature overlaps. At this point I doubt there much that can be done about this specific issue, as editing that name would be a breaking change.

@carlosperate Is there any way to solve this problem, I also used in the project to the bootstrap and the package, there are some styles of conflict

You can just rename the function
On Jul 27, 2015 9:37 AM, "guoyoujin" [email protected] wrote:

@carlosperate https://github.com/carlosperate Is there any way to solve
this problem, I also used in the project to the bootstrap and the package,
there are some styles of conflict

—
Reply to this email directly or view it on GitHub
https://github.com/Dogfalo/materialize/issues/1803#issuecomment-125266918
.

@Dogfalo Ok, I'll give it a try, according to this method should be useful to you, but may face is that many properties, have to rename, it may not be a good way, but now can only be the case, thank you for your answer

Adding bootstrap and materialize is probably causing more problems than you might realize at first and is not recommended.

This is so cumbersome. Could there at least be alias functions for use cases where bootstrap is needed?

I've gone into the Materialize.js file and changed the dropdown function name like this

$.fn.dropdownMat = function (options) { ... (line 623)

Found and replaced all instances of dropdown() inside this file too. Works fine side by side with Bootstrap now...

I believe this function should be called menu or something similar, since this is the Material namespace equivalent.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruslandzhumaev picture ruslandzhumaev  Â·  3Comments

cope picture cope  Â·  3Comments

ReiiYuki picture ReiiYuki  Â·  3Comments

bradley-varol picture bradley-varol  Â·  3Comments

samybob1 picture samybob1  Â·  3Comments