twico-ui 1.22.1 → 1.22.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to Twico UI are documented here (newest first). This file is generated automatically on each release by [semantic-release](https://semantic-release.gitbook.io/) from [Conventional Commits](https://www.conventionalcommits.org/) — do not edit it by hand. The same notes appear on each [GitHub Release](https://github.com/EncryptionL/twico-ui/releases).
4
4
 
5
+ ## [1.22.2](https://github.com/EncryptionL/twico-ui/compare/v1.22.1...v1.22.2) (2026-07-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **datatable:** reset optimistic rowReorder overlay when rows change in server mode ([#296](https://github.com/EncryptionL/twico-ui/issues/296)) ([600cb16](https://github.com/EncryptionL/twico-ui/commit/600cb16099faf0f5498c11430773d8375dc593ac))
11
+
5
12
  ## [1.22.1](https://github.com/EncryptionL/twico-ui/compare/v1.22.0...v1.22.1) (2026-07-29)
6
13
 
7
14
 
package/dist/index.cjs CHANGED
@@ -9299,6 +9299,9 @@ function Datatable({
9299
9299
  const [headH, setHeadH] = React51__namespace.default.useState(41);
9300
9300
  const theadRef = React51__namespace.default.useRef(null);
9301
9301
  const [rowOrder, setRowOrder] = React51__namespace.default.useState(null);
9302
+ React51__namespace.default.useEffect(() => {
9303
+ if (serverMode) setRowOrder(null);
9304
+ }, [rows, serverMode]);
9302
9305
  const [rowHeights, setRowHeights] = React51__namespace.default.useState({});
9303
9306
  const [rowDrag, setRowDrag] = React51__namespace.default.useState({ from: null, over: null, after: false });
9304
9307
  const [rowGrab, setRowGrab] = React51__namespace.default.useState(null);