You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the "adaptable" formatter, things work well. When using the "adaptable" editor, things work well. When using both at the same time, things don't work so well.
To Reproduce
In the example, three tables are created. The first shows a working "adaptable" formatter, using lookups for the last two rows. The second shows a working "adaptable" editor, where the first two rows use an "input" editor and the last two use a "list" editor. The third table uses both and fails with various obscure errors like this one (Firefox). Similar errors were encountered in Chrome.
Uncaught (in promise) InternalError: too much recursion
get CellComponent.js:9
formatterLookup (index):229
adaptable adaptable.js:23
formatValue Format.js:149
_chain InternalEventBus.js:76
_chain InternalEventBus.js:75
chain CoreFeature.js:82
_generateContents Cell.js:103
layoutElement Cell.js:216
setValueActual Cell.js:209
CellComponent.js:9:32
Expected behavior
I was expecting to have, say, the Country column show the label "Canada" normally. Then when clicking on it, have it show the countries list. Then, when selecting a country, have the cell value updated with the index, but have the formatter display the country name.
Screenshots
See the fiddle.
Desktop (please complete the following information):
Tested with current desktop versions of Chrome and Firefox.
Smartphone (please complete the following information):
Not tested.
Additional context
Happy to provide any other data if it helps.
The text was updated successfully, but these errors were encountered:
It is possible to use an adaptable formatter and editor at the same time, the issue here is actually the way you are using your lookups is causing a recursive loop in the row initialization logic.
In this scenario it is specifically:
varkey=cell.getRow().getCell('Key').getValue();
The issue comes because the adaptable formatter and editor are called at different points in the row initialization, which is normally not an issue, but in this case you are calling for another cell in that row which may not have been initialized at the point those functions are called, and so essentially it is resulting in things being reinitialized because a resource was accessed that wasn't ready but that in turn calls a different function that does the same and it rocks back and forth between the two.
In this scenario, changing your code to:
varkey=cell.getRow().getData().Key;
will resolve the issse as it will access the underlying data with you need, without triggering a reinitialization
Describe the bug
When using the "adaptable" formatter, things work well. When using the "adaptable" editor, things work well. When using both at the same time, things don't work so well.
Tabulator Info
6.3
Working Example
https://jsfiddle.net/500Foods/xeqz4vo1/60/
To Reproduce
In the example, three tables are created. The first shows a working "adaptable" formatter, using lookups for the last two rows. The second shows a working "adaptable" editor, where the first two rows use an "input" editor and the last two use a "list" editor. The third table uses both and fails with various obscure errors like this one (Firefox). Similar errors were encountered in Chrome.
Expected behavior
I was expecting to have, say, the Country column show the label "Canada" normally. Then when clicking on it, have it show the countries list. Then, when selecting a country, have the cell value updated with the index, but have the formatter display the country name.
Screenshots
See the fiddle.
Desktop (please complete the following information):
Tested with current desktop versions of Chrome and Firefox.
Smartphone (please complete the following information):
Not tested.
Additional context
Happy to provide any other data if it helps.
The text was updated successfully, but these errors were encountered: