@rocket.chat/fuselage 0.83.0 → 0.83.1
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.
|
@@ -6612,7 +6612,7 @@ function Options({ maxHeight = 'x144', multiple, renderEmpty: EmptyComponent = O
|
|
|
6612
6612
|
return;
|
|
6613
6613
|
(0, prevent_1.prevent)(e);
|
|
6614
6614
|
onSelect([value, label, selected, disabled, type, url]);
|
|
6615
|
-
}, value: value, selected: selected, disabled: disabled, focus: cursor === i }, value));
|
|
6615
|
+
}, value: value, selected: !!selected, disabled: disabled, focus: cursor === i }, value));
|
|
6616
6616
|
}
|
|
6617
6617
|
}), [options, cursor, onSelect, OptionComponent]);
|
|
6618
6618
|
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: (0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, smooth: true, children: (0, jsx_runtime_1.jsxs)(Tile_1.Tile, { ref: liRef, elevation: '0', padding: 'none', maxHeight: maxHeight, onMouseDown: prevent_1.prevent, onClick: prevent_1.prevent, is: 'ol', "aria-multiselectable": multiple || true, role: 'listbox', id: id, "aria-activedescendant": options?.[cursor]?.[0]
|
|
@@ -6847,7 +6847,7 @@ function OptionsPaginated({ ref, withTitle, multiple, renderEmpty: EmptyComponen
|
|
|
6847
6847
|
(0, prevent_1.prevent)(e);
|
|
6848
6848
|
onSelect([value, label]);
|
|
6849
6849
|
return false;
|
|
6850
|
-
}, key: value, value: value, selected: selected
|
|
6850
|
+
}, key: value, value: value, selected: !!selected, focus: cursor === index || undefined }));
|
|
6851
6851
|
};
|
|
6852
6852
|
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: !options.length ? ((0, jsx_runtime_1.jsx)(EmptyComponent, {})) : ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
|
|
6853
6853
|
// TODO Add a scroller element
|