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

[HxCarousel] IllegalInvocation error when element is removed from DOM during sliding transition #949

Closed
alexax578 opened this issue Nov 22, 2024 · 2 comments
Labels

Comments

@alexax578
Copy link
Contributor

alexax578 commented Nov 22, 2024

Exception that is thrown from the Bootstrap carousel component code:

selector-engine.js:37 Uncaught TypeError: Illegal invocation
at Object.find (selector-engine.js:37:60)
at xt._getItems (carousel.js:381:27)
at xt._getItemIndex (carousel.js:267:17)
at r (carousel.js:319:20)
at carousel.js:362:7
at g (index.js:226:51)
at HTMLDivElement.a (index.js:247:5)
at s (index.js:71:11)
at index.js:253:7

Based on the discussion that I found here: twbs/bootstrap#38373
and based on the implementation of Bootstrap components for React that were mentioned in the issue: https://github.com/react-bootstrap/react-bootstrap/blob/master/src/Carousel.tsx

I am not sure if the Bootstrap team will be willing to resolve this issue. When I look at the implementation of the Carousel component in react-bootstrap they do not rely on Bootstrap to handle the logic. Instead, they implement it on their own to better handle interactions with React.

@crdo crdo added the Premium label Nov 22, 2024
@hakenr
Copy link
Member

hakenr commented Nov 22, 2024

@alexax578 Steps to reproduce? PWT AB# ticket number?

@hakenr
Copy link
Member

hakenr commented Nov 22, 2024

Duplicates #904.

@hakenr hakenr closed this as completed Nov 22, 2024
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

3 participants