-
Notifications
You must be signed in to change notification settings - Fork 160
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
fix(content-switcher): get current content-switcher-item on icon click #11602
fix(content-switcher): get current content-switcher-item on icon click #11602
Conversation
Deploy preview created for package Built with commit: 2c8ac104ef953e73be057181baca0f087f56deb9 |
Deploy preview created for package Built with commit: 2c8ac104ef953e73be057181baca0f087f56deb9 |
Deploy preview created for package Built with commit: 2c8ac104ef953e73be057181baca0f087f56deb9 |
Deploy preview created for package Built with commit: 2c8ac104ef953e73be057181baca0f087f56deb9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
271295a
into
carbon-design-system:main
Hey there! This issue/pull request was referenced in recently released v2.5.0. |
carbon-design-system#11602) ### Related Ticket(s) Closes carbon-design-system#10963 ### Description This PR updates the content switcher to fetch the current content switcher item even when an icon within the item is clicked ### Changelog **New** - `_getCurrentItem` method **Changed** - content-switcher click handler <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
carbon-design-system#11602) ### Related Ticket(s) Closes carbon-design-system#10963 ### Description This PR updates the content switcher to fetch the current content switcher item even when an icon within the item is clicked ### Changelog **New** - `_getCurrentItem` method **Changed** - content-switcher click handler <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Related Ticket(s)
Closes #10963
Description
This PR updates the content switcher to fetch the current content switcher item even when an icon within the item is clicked
Changelog
New
_getCurrentItem
methodChanged