-
Notifications
You must be signed in to change notification settings - Fork 610
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
Doesn't work with Materialize UI #16718
Comments
What animation was that? Is there a live demo of this anywhere? |
Seems to be talking about the materialize css framework. Not sure which animation is being discussed specifically though. |
Yes the materialize framework. Its the input box placeholder text which gets animated when you click on it. but the minute you add the awesomplete class to the input that stops working. You can check the animation here http://materializecss.com/forms.html when you click on the last name input there is some animation there. Got a jsfiddle for you here Try clicking on the last name without modifying the code. Then add the awesomplete class to the last name input and then see. Awesomplete works fine but the animation stops working |
This is happening because Materialize input/label animations require the two elements to be siblings, and awesomplete (like most (all?) autocomplete libs) wraps the target input in a template, making the input one DOM level lower than the label. I'm actually using Materialize for a Chrome extension and am up against the same issue. The best concept I've mustered is using a class along the lines of I'll submit a PR if I crack it. |
Looks like it works well with Materialize for me. See code here http://codepen.io/clemsos/pen/pbLEJJ |
addresses a use case where container element cannot reuse input element parent because input parent clips container content also solves LeaVerou#17086 & LeaVerou#16718
addresses a use case where container element cannot reuse input element parent because input parent clips container content also solves LeaVerou#17086 & LeaVerou#16718
I've added a container function to options that will allow client to provide a different container element. The default version of container function creates container element as before. I believe this is in line with the item function that customizes creating item elements. This addresses my use case where container element cannot reuse the input element parent because the input parent clips container's content. It also addresses a case when input element has to be next to it's original siblings. It also solves #17086 & #16718 Thank you for consideration.
The materialize input box stop showing its default animation when clicked on a input box although autocomplete works.
The text was updated successfully, but these errors were encountered: