pryley/float-labels.js

Object doesn't support property or method 'forEach' error IE11

Closed this issue · 6 comments

IE version: 11.0.9600.18697 windows 7

ie-float-label-error

I think I solved this issue, but I can't build your project to send you a pull request.
Console show me that error:

sass-error

This changes works for me on IE.
I just make changes in the functions Init() and onReset(), and put this lines before the forEach

  • init(): var array = [].slice.call( form.querySelectorAll( tag + exclude ) );

  • onReset(): var array = [].slice.call( ev.target.querySelectorAll( tag ) );

follow this pictures:

init-float-label

onreset-float-label

Fixed in v2.0.2, thanks. Gulp should now also compile correctly.

Thanks for fix this!
npm still installing v2.0.1. Please, can you notice me when v2.0.2 is available in npm?

should be available now

Thanks!