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
Carousel Not work IE11 #799
Comments
Please see if this is still an issue with the latest release of reactstrap and BS4. If so, can you make an example on stackblitz? You can use https://stackblitz.com/edit/reactstrap-v5-beta-starter as a base |
https://stackblitz.com/edit/reactstrap-v5-beta-starter-xdnyqn?file=Example.js The carousel example available on the reactstrap site does not work in IE once the slide attempts to transition. |
The failing code is: reactstrap/src/CarouselItem.js Line 42 in eea7d1b
Through sindresorhus/devtools-detect#9 and https://stackoverflow.com/questions/19345392/why-arent-my-parameters-getting-passed-through-to-a-dispatched-event/19345563 it seems we need a polyfill for IE9+
|
I think this is the only component which actually mimics the bootstrap events. I am not sure if we want the other components to do this or if we want to remove this and just use callbacks as other components currently do. |
I am pro not needing polyfills. In the meantime, I confirmed the above one works for this issue on IE11. |
This applies the CustomEvent polyfill recommended in the MDN web docs (https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill). This also applies a simple polyfill for Object.values I found in the react-transition-group module (https://github.com/reactjs/react-transition-group/blob/9e3b2d3c09b78e755bdc837b7b38337812ede2c9/src/TransitionGroup.js#L11). Fixes reactstrap#799
I'm having carousel issue with IE 11 again, reactstrap 8.1.1, the problem code is:
Is it a bug? any workaround? |
nvm, I polyfilled as mentioned above and works fine now. |
Issue description
Carousel
5.0.0-alpha.4
umd/csj/es
(if umd, are you using the "full" version (only for v5+)?)16.2.0
4.0.0-alpha.6
What is happening?
Carousel Not work IE11when click in carousel-indicators page failed
What should be happening?
Steps to reproduce issue
Error message in console
Code
The text was updated successfully, but these errors were encountered: