@patternfly/react-table 4.101.10 → 4.101.13
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/CHANGELOG.md +24 -0
- package/dist/umd/react-table.css +368 -368
- package/dist/umd/react-table.js +3 -0
- package/dist/umd/react-table.min.css +694 -694
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
- package/src/demos/Table.md +30 -3
- package/src/demos/examples/ComposableTableStickyToolbar.tsx +252 -0
package/dist/umd/react-table.js
CHANGED
|
@@ -13104,6 +13104,7 @@
|
|
|
13104
13104
|
}
|
|
13105
13105
|
};
|
|
13106
13106
|
const onKeyDown = (event) => {
|
|
13107
|
+
var _a, _b;
|
|
13107
13108
|
const key = event.key;
|
|
13108
13109
|
if ((!isEditableActive &&
|
|
13109
13110
|
(!editableButtonRef ||
|
|
@@ -13120,6 +13121,7 @@
|
|
|
13120
13121
|
onEditComplete && onEditComplete(editableInputRef.current.value);
|
|
13121
13122
|
}
|
|
13122
13123
|
setIsEditableActive(false);
|
|
13124
|
+
(_a = editableButtonRef === null || editableButtonRef === void 0 ? void 0 : editableButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13123
13125
|
}
|
|
13124
13126
|
if (isEditableActive && key === 'Escape') {
|
|
13125
13127
|
event.preventDefault();
|
|
@@ -13130,6 +13132,7 @@
|
|
|
13130
13132
|
onEditCancel && onEditCancel(children);
|
|
13131
13133
|
}
|
|
13132
13134
|
setIsEditableActive(false);
|
|
13135
|
+
(_b = editableButtonRef === null || editableButtonRef === void 0 ? void 0 : editableButtonRef.current) === null || _b === void 0 ? void 0 : _b.focus();
|
|
13133
13136
|
}
|
|
13134
13137
|
if (!isEditableActive && key === 'Enter') {
|
|
13135
13138
|
event.preventDefault();
|