RocketCommunicationsInc / astro

Astro UXDS is a collection of guidelines, patterns and components for designing space-based user interface applications.
https://astrouxds.com
Other
115 stars 25 forks source link

React - Rux-Tabs not clearing default selected #844

Closed Full-lifey closed 2 years ago

Full-lifey commented 2 years ago

When using Rux Tabs we are selecting a default value by using the selected prop on RuxTab.

However, when we do that there is a bug where clicking on the other tab doesn't clear the selected state from the first tab when clicking it for the first time.

NOTE: This only seems to happen when also adding an onClick handler to the RuxTabs component.

An example can be found here: https://codesandbox.io/s/gifted-cache-ntdj78

micahjones13 commented 2 years ago

Issue solved internally with Maria - closing now.