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
I’m trying to send only edited rows back to the server, but I’ve found just clicking around in the table without changing anything sometimes marks cells as edited. Apparently it depends on the editor the cell uses.
This behaviour also seems to vary between browsers. Here’s a fiddle that lists all edited rows whenever you click inside the table: https://jsfiddle.net/g5tdomky/
Note how in Edge, edits are reported as soon as a tickCross or list editor is opened and closed, even though no changes have been made. The same behaviour is not true for the standard text input in the Name column. In Firefox, tickCross behaves correctly, but list doesn’t. I don’t know about other editors.
Note also how the cellEdited event (correctly) doesn’t fire unless the values are actually changed. Otherwise I could use that to check against the initial value and call cell.clearEdited() accordingly.
Expected behavior
Cells whose value matches the initial value should not be marked as edited, imho. I feel like it should behave the same way as canceling the edit.
Desktop
Firefox 125
Edge 124
Thank you!
The text was updated successfully, but these errors were encountered:
Greetings,
I’m trying to send only edited rows back to the server, but I’ve found just clicking around in the table without changing anything sometimes marks cells as edited. Apparently it depends on the editor the cell uses.
This behaviour also seems to vary between browsers. Here’s a fiddle that lists all edited rows whenever you click inside the table:
https://jsfiddle.net/g5tdomky/
Note how in Edge, edits are reported as soon as a
tickCross
orlist
editor is opened and closed, even though no changes have been made. The same behaviour is not true for the standard text input in the Name column. In Firefox,tickCross
behaves correctly, butlist
doesn’t. I don’t know about other editors.Note also how the
cellEdited
event (correctly) doesn’t fire unless the values are actually changed. Otherwise I could use that to check against the initial value and callcell.clearEdited()
accordingly.Tabulator Info
Tabulator 6.2.0
Working Example
https://jsfiddle.net/g5tdomky/
Expected behavior
Cells whose value matches the initial value should not be marked as edited, imho. I feel like it should behave the same way as canceling the edit.
Desktop
Firefox 125
Edge 124
Thank you!
The text was updated successfully, but these errors were encountered: