Select conditional rendering fix and aria-hidden on decorative icons (WEB-1118)
Version: 0.6.0 ยท Type: ๐ Bug Fix
Problemโ
MultiSelect, SearchableOptionItem and Select used && JSX conditional rendering, decorative icon spans were missing aria-hidden, and some if statements in MultiSelect's event handlers were unbraced.
Changed Filesโ
packages/design/src/components/Select/Select.tsxpackages/design/src/components/Select/SearchableOptionItem.tsxpackages/design/src/components/Select/MultiSelect.tsx
Changesโ
- Replaced
&&JSX conditional rendering with explicit ternaries inMultiSelect,SearchableOptionItemandSelect - Added
aria-hidden="true"to decorative icon spans - Added braces to unbraced
ifstatements inMultiSelect's event handlers