Material templates do not work properly without jQuery
wlingke opened this issue · 7 comments
I am having a bunch of trouble getting 3.0.4 working. It loads fine but the behavior isn't what I expect. For instance, when you click on a text-input, the label should move up and the placeholder should appear. This doesn't happen for me. Or when I click on a select, it scrolls me to the top of the page. When I type text into inputs, they disappear but when I click on the inputs, they come back
I am using angular-material 0.8.3 and angular 1.3.15,
I made an example here: http://jsfiddle.net/Ly22uhbv/4/
Ah.. I believe the problem is that you're using Angular Material 0.8.3. That version that has quite a few bugs. :)
This is why my own docs page points to head. Have you tried v0.9.0-rc2? That's likely got fixes for the issues you've mentioned. If not I will take a look after work today.
I've swapped them out for head as you suggested and the problems persist.
I discovered that including Jquery makes the form work: http://jsfiddle.net/Ly22uhbv/7/
Seems like there's still an issue with jquery
Hmm. Very interesting. It looks like Angular Material does not require jQuery as of issue 60. Also looks like the Angular Material demo page isn't requiring it...
I'm not sure what in my library would be requiring jQuery, or why it would fail silently like this... hmm.
@wlingke, I'm very sorry that you've run into this issue. Realistically, I probably won't be able to fix it soon. I moved this weekend and my evenings are currently filled with unpacking. I just spent about 45 minutes debugging but I haven't found the root cause.
If you find anything, please feel free to add notes (or post a PR!) else I'll get back to it when I can.
Hi again @wlingke!
I'm so sorry it took me a couple of weeks to gat around to this. I've been very busy after moving. I'm happy to report that the most recent release of formFor- version 3.0.5- resolves the issue you've reported.
Here's an updated Plunker: http://jsfiddle.net/bvaughn/tmj6zzLz/1/
Edit Update. Had linked to the wrong version of the JSfiddle!
Awesome!
—
Sent from Mailbox
On Sat, May 9, 2015 at 5:27 PM, Brian Vaughn notifications@github.com
wrote:
Closed #106.
Reply to this email directly or view it on GitHub:
#106 (comment)