qbs-react-grid 1.1.39 → 1.1.40

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.
@@ -154,7 +154,7 @@ var QbsTable = function QbsTable(_ref) {
154
154
  if (visibleCount > 0 && lastVisibleColumn) {
155
155
  updatedColumns.forEach(function (col) {
156
156
  var _lastVisibleColumn;
157
- if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field)) {
157
+ if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field) && col.title === lastVisibleColumn.title) {
158
158
  col.resizable = false;
159
159
  } else {
160
160
  col.resizable = true;
@@ -160,7 +160,7 @@ var QbsTable = function QbsTable(_ref) {
160
160
  if (visibleCount > 0 && lastVisibleColumn) {
161
161
  updatedColumns.forEach(function (col) {
162
162
  var _lastVisibleColumn;
163
- if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field)) {
163
+ if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field) && col.title === lastVisibleColumn.title) {
164
164
  col.resizable = false;
165
165
  } else {
166
166
  col.resizable = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qbs-react-grid",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "A React table component",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -144,7 +144,7 @@ const QbsTable: React.FC<QbsTableProps> = ({
144
144
 
145
145
  if (visibleCount > 0 && lastVisibleColumn) {
146
146
  updatedColumns.forEach(col => {
147
- if (col.field === lastVisibleColumn?.field) {
147
+ if (col.field === lastVisibleColumn?.field && col.title === lastVisibleColumn.title) {
148
148
  col.resizable = false;
149
149
  } else {
150
150
  col.resizable = true;