Skip to content

Commit

Permalink
Ensure column updates correctly apply with column separator
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Jan 21, 2024
1 parent 64c1374 commit 3bf5438
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -21588,7 +21588,7 @@ class ColumnManager extends CoreFeature {
var matches = [];

Object.keys(this.columnsByField).forEach((field) => {
var fieldRoot = field.split(".")[0];
var fieldRoot = this.table.options.nestedFieldSeparator ? field.split(this.table.options.nestedFieldSeparator)[0] : field;
if(fieldRoot === root){
matches.push(this.columnsByField[field]);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/core/ColumnManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export default class ColumnManager extends CoreFeature {
var matches = [];

Object.keys(this.columnsByField).forEach((field) => {
var fieldRoot = field.split(".")[0];
var fieldRoot = this.table.options.nestedFieldSeparator ? field.split(this.table.options.nestedFieldSeparator)[0] : field;
if(fieldRoot === root){
matches.push(this.columnsByField[field]);
}
Expand Down

0 comments on commit 3bf5438

Please sign in to comment.