[Carousel]
#2467
Replies: 1 comment
-
Could you please provide a minimal example repo. You can use this CodeSandbox: https://stackblitz.com/github/chakra-ui/ark/tree/main/templates/react/next-js?file=README.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my React application, I'm using a Carousel component to display a series of items. Within each Carousel Item, I'm rendering a complex component called PersonaInput, which itself contains a map iteration over options to render RadioButtonGroup.Item components.
However, I've encountered an issue where each RadioButtonGroup.Item within PersonaInput is mistakenly recognized as a separate Carousel Item by the Carousel component. This behavior disrupts the intended functionality of the Carousel.
Here's a simplified version of the code structure:
In the PersonaInput I havel another map, something like:
How can I ensure that the Carousel treats each PersonaInput component as a single item, regardless of the number of RadioButtonGroup.Item components it contains? Or is this behavior possibly a bug?
(Note: I've discovered that using components other than RadioButtonGroup.Item within the map iteration works fine.)
Beta Was this translation helpful? Give feedback.
All reactions