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 issue
When data is pre-populated with the "data" element, if a JS Number is set on a text field, the cellEdited event is triggered because Tabulator changes the value to the type that matches the column definition. 1 === '1' is false, so the data changed. If the formatter is set to money (which think should be changed to "Number" or a "Number" formatter should be added, but that's another thought :)) or if the data provided to Tabulator is a string, the cellEdited event doesn't trigger, which is as expected.
The documentation should mention that cellEdited uses strict type checking to determine if a value changed.
Ok - I just thought that since it threw me off for a little while, some explanation in the documentation would be helpful (since it looks like cellEdited is being triggered when there is no change). If it's not worth noting the docs, this issue could be closed.
Also, thanks so much for your time and effort on this project! It's been immensely helpful.
Website Page
https://tabulator.info/docs/6.2/events#edit
Describe the issue
When data is pre-populated with the "data" element, if a JS Number is set on a text field, the cellEdited event is triggered because Tabulator changes the value to the type that matches the column definition.
1 === '1'
isfalse
, so the data changed. If the formatter is set to money (which think should be changed to "Number" or a "Number" formatter should be added, but that's another thought :)) or if the data provided to Tabulator is a string, the cellEdited event doesn't trigger, which is as expected.The documentation should mention that cellEdited uses strict type checking to determine if a value changed.
https://jsfiddle.net/splemp/fbq63knd/
The text was updated successfully, but these errors were encountered: