schummar-table 0.45.1 → 0.45.3
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/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3903,7 +3903,9 @@ function ExpandControl({
|
|
|
3903
3903
|
return !!((_a = state.activeItemsById.get(itemId)) == null ? void 0 : _a.children.length);
|
|
3904
3904
|
}
|
|
3905
3905
|
);
|
|
3906
|
-
function toggle2() {
|
|
3906
|
+
function toggle2(e) {
|
|
3907
|
+
e.preventDefault();
|
|
3908
|
+
e.stopPropagation();
|
|
3907
3909
|
const {
|
|
3908
3910
|
props: { expanded: controlledExpanded, expandOnlyOne, onExpandedChange },
|
|
3909
3911
|
expanded,
|
|
@@ -4168,9 +4170,9 @@ function Virtualized(_a) {
|
|
|
4168
4170
|
var _a3;
|
|
4169
4171
|
const itemIds2 = state.activeItems.map((item) => item.id);
|
|
4170
4172
|
const root = probeRef.current && findScrollRoot(probeRef.current);
|
|
4173
|
+
if (!state.props.virtual) return { itemIds: itemIds2 };
|
|
4171
4174
|
if (!probeRef.current || !root || !document.contains(root) || state.displaySizePx === void 0)
|
|
4172
4175
|
return {};
|
|
4173
|
-
if (!state.props.virtual) return { itemIds: itemIds2 };
|
|
4174
4176
|
const {
|
|
4175
4177
|
rowHeight,
|
|
4176
4178
|
initalRowHeight,
|