New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CONFLICT] JQueryUI "autocomplete" conflicts with MaterializeCSS "autocomplete" #3457
Comments
Closed due inactivity, feel free to reopen it if it is still necessary. |
I have same problem ;-( |
@tomscholz @DanielRuf I think that decoupling this in a new JS file should make it simple delete the autocomplete js in the build step. @plumma did you tried commenting the autocomplete code and run the grunt task to have a personalized copy of materialize? |
No, this is part of the forms component. He can rename the function name and rebuild from source. |
It's planned to rename all component parts or namespace them completely. |
Ok I've done some further diags and it appears Autcomplete is working fine for me on my other pages, my issue I discovered was that when I call Autcomplete as a function it doesn't seem to work. I'm a novice so I suspect I'm doing something wrong. So for example say I called the 'SearchAutocomplete' function as below it doesn't work, but if I removed it from the function and ran is directly as $('#SearchString').autocomplete, it works ok. Apologies for the red herring, if anyone has any suggestions would be good. $('#SearchString').on("input", (function (event) {
// Autocomplete function
|
What's a grunt task? :-) I like your suggestions but I'm not sure how I'd go about this. :-( I'm running materialize via the CDN, so I presume I can't comment anything out? @Scripts.Render("https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/js/materialize.min.js") |
No, you cant. You would have to clone this repository using Git, install the dependencies and run grunt. |
Thanks. I've made a rookie mistake and I've been working with my local site CSS and materialize CSS and had a massive headache fighting the materilize css ha ha This sounds like a good suggestion, I'll try it out much appreciated. |
i had the same problem ... so i comment the autocomplete plugin function on materialize.js and the autocomplete mentions on materialize.css and it works ! |
This doesn't work if you use CDN... |
Generally using files from CDNs is not recommended. Also this us a very old issue and not relevant for v1. Please create a new issue. |
The title says it all.
I was using a May 2015 build of Materialize and I decided to update. I was surprised to see that my autocomplete from JQueryUI broke. After much debugging I found out that Materialize.JS has it's own autocomplete function now.
Any workaround?
EDIT:
Rolled back to 0.97.6 for now.
The text was updated successfully, but these errors were encountered: