markcell / jquery-tabledit

Inline editor for HTML tables compatible with Bootstrap.
http://markcell.github.io/jquery-tabledit/
MIT License
435 stars 209 forks source link

Bug in Nested Tables #162

Open jdormand opened 11 months ago

jdormand commented 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 on line 498: $($button.parents('tr').first().find('td.tabledit-view-mode').get().reverse()).each(function() { Mode.edit(this); });

jdormand commented 11 months ago

Same issue applies to Delete: Line 430: var $td = $(this).parents('td').first();