-
Notifications
You must be signed in to change notification settings - Fork 864
Description
Describe the bug
I have a sort on column A.
I apply updateDefinition to this column A to make it editable.
I lose the sort on column A.
When I look at getSorters, the field in my column A has the value 'false'. This is due to updateDefinition Column.js 930.
The table then becomes inconsistent. If I call replaceData, for example, I get a sort error setColumnHeader Sort.js 419 because element also has the value 'false'.
Error stack:
Uncaught (in promise) TypeError: e.getElement().setAttribute is not a function
setColumnHeader Sort.js:419
sort Sort.js:389
sort Sort.js:388
refreshPipelines RowManager.js:728
refreshActiveData RowManager.js:706
_setDataActual RowManager.js:246
setData RowManager.js:222
setData RowManager.js:207
_parseRemoteData Page.js:837
_chain InternalEventBus.js:76
_chain InternalEventBus.js:75
chain CoreFeature.js:82
load DataLoader.js:47
promise callback*load DataLoader.js:41
replaceData Tabulator.js:424
Tabulator Info
Tabulator 6.3
Working Example
https://jsfiddle.net/xcqm7nzh/
To Reproduce
https://jsfiddle.net/xcqm7nzh/
See on the console, the sorter field value change from 'column_two' to false
Expected behavior
Tte sort continues to work correctly and the field in the sort is not set to 'false' but keeps its initial value
Desktop
OS: Windows
Browser: Firefox/Chrome/Edge