@redsift/design-system 11.3.2-alpha.0 → 11.3.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -19932,6 +19932,7 @@ const ListboxVariant = {
|
|
|
19932
19932
|
*/
|
|
19933
19933
|
|
|
19934
19934
|
function useListboxItem(props) {
|
|
19935
|
+
var _context$state;
|
|
19935
19936
|
const {
|
|
19936
19937
|
domElementRef,
|
|
19937
19938
|
value,
|
|
@@ -19996,7 +19997,7 @@ function useListboxItem(props) {
|
|
|
19996
19997
|
});
|
|
19997
19998
|
}
|
|
19998
19999
|
}, [value]);
|
|
19999
|
-
const isSelected = propsIsSelected !== null &&
|
|
20000
|
+
const isSelected = propsIsSelected && context !== null && context !== void 0 && (_context$state = context.state) !== null && _context$state !== void 0 && _context$state.selectedValues ? context.state.selectedValues.find(selectedValue => selectedValue === value) !== undefined : false;
|
|
20000
20001
|
useEffect(() => {
|
|
20001
20002
|
if (isFocused && domElementRef.current) {
|
|
20002
20003
|
var _current;
|