Skip to content
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

Not working with IE 11 #616

Closed
fabianpiau opened this issue Feb 11, 2017 · 12 comments
Closed

Not working with IE 11 #616

fabianpiau opened this issue Feb 11, 2017 · 12 comments
Assignees
Labels

Comments

@fabianpiau
Copy link

Hi,
On Windows Phone (at least 8.1), I am not sure about the version of IE there, but the plugin does not work.
Is there some testing on this platform? I am pretty sure I saw it working in the past with older version of the plugin.
Thanks!

@fabianpiau
Copy link
Author

It seems to be IE 11. I have windows 10 and Edge on my desktop and it works fine.
Can you double check the behaviour with IE 11?

@fabianpiau
Copy link
Author

Actually, I realise I have IE 11 on windows 10 and it's the same behaviour as on windows phone.
The first switch renders with some issue, the next ones don't render at all.
See the screen attached.
capture

@fabianpiau
Copy link
Author

There is a javascript error:

SCRIPT438: Object doesn't support property or method 'assign'
bootstrap-switch.min.js (10,2511)

@fabianpiau fabianpiau changed the title Incompatible with Windows Phone Not working with IE 11 Feb 12, 2017
@LostCrew LostCrew self-assigned this Feb 13, 2017
@LostCrew LostCrew added the bug label Feb 13, 2017
@ThRintelen
Copy link

I have this bug in IE11 too.

@sp00n
Copy link

sp00n commented Feb 20, 2017

Internet Explorer doesn't support Object.assign.
Here's a polyfill (bottom of the page):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

@LostCrew
Copy link
Member

LostCrew commented Feb 25, 2017

Fixed and released in v3.3.4

@fabianpiau
Copy link
Author

Thanks a lot, I will give it a try :)

@fabianpiau
Copy link
Author

It's working but just the size is quite big. It is not the case for other browsers.
image

@fabianpiau
Copy link
Author

It is also on the documentation only for Off text and Label text. Maybe my label is too big
image

@fabianpiau
Copy link
Author

It is definitely the label. For some reason 'Yes' takes too much space, I manually change the width to 50px and the switch looks good again. I am trying to figure out where to change it, but you probably know more as it is a dynamic value.

It was fixed to 48px with IE11 but not enough, it is 47px with Firefox and it works fine.

@sp00n
Copy link

sp00n commented Feb 25, 2017

I can confirm this behaviour in IE11 on Win7 x64.

@fabianpiau
Copy link
Author

I created a new issue as this one is now close: #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants