qbs-react-grid 1.1.9 → 1.1.10
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/es/qbsTable/QbsTable.js
CHANGED
|
@@ -136,6 +136,9 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
136
136
|
}) : col;
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
+
setTimeout(function () {
|
|
140
|
+
handleColumnsResizable();
|
|
141
|
+
}, 500);
|
|
139
142
|
}, []);
|
|
140
143
|
var handleColumnWidth = useCallback(function (newWidth, dataKey) {
|
|
141
144
|
if (newWidth === undefined || dataKey === undefined) return;
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -143,6 +143,9 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
143
143
|
}) : col;
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
|
+
setTimeout(function () {
|
|
147
|
+
handleColumnsResizable();
|
|
148
|
+
}, 500);
|
|
146
149
|
}, []);
|
|
147
150
|
var handleColumnWidth = (0, _react.useCallback)(function (newWidth, dataKey) {
|
|
148
151
|
if (newWidth === undefined || dataKey === undefined) return;
|
package/package.json
CHANGED
|
@@ -122,6 +122,9 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
122
122
|
setColumns(cols =>
|
|
123
123
|
cols.map(col => (col.title === columnName ? { ...col, isVisible: !col.isVisible } : col))
|
|
124
124
|
);
|
|
125
|
+
setTimeout(() => {
|
|
126
|
+
handleColumnsResizable();
|
|
127
|
+
}, 500);
|
|
125
128
|
}, []);
|
|
126
129
|
|
|
127
130
|
const handleColumnWidth = useCallback((newWidth?: number, dataKey?: any) => {
|