Open jdormand opened 11 months ago
When a Tabledit table is nested in a cell of another table, the EDIT button incorrectly opens up all rows of the table for editting. In a non nested table, only the row you click edit on becomes edittable.
See: https://jsfiddle.net/0acnzmuy/1/
Possible solution is to only select the first parent
$($button.parents('tr').first().find('td.tabledit-view-mode').get().reverse()).each(function() { Mode.edit(this); });
Same issue applies to Delete: Line 430: var $td = $(this).parents('td').first();
var $td = $(this).parents('td').first();
When a Tabledit table is nested in a cell of another table, the EDIT button incorrectly opens up all rows of the table for editting. In a non nested table, only the row you click edit on becomes edittable.
See: https://jsfiddle.net/0acnzmuy/1/
Possible solution is to only select the first parent
$($button.parents('tr').first().find('td.tabledit-view-mode').get().reverse()).each(function() { Mode.edit(this); });
Same issue applies to Delete: Line 430:
var $td = $(this).parents('td').first();