This bug happened when asynchronously creating a table (such as $("#editor").trumbowyg('html', string)), or table content has been changed. In addition, correct the CSS selector of cellhandle.
Reason: The rebuildResizeLayers is emitted via event tbwchange.tbwTable. And its variables (tableState, targetColumnIndex, $table) used in mouse events come from different closures (caused by hasResizeLayers).
The table plugin of v2.28.0 still has resize bugs: table cells are unresizable after table content is changed, and cellHandles is added repeatedly.
I created a codepen to show it. codepen
This bug happened when asynchronously creating a table (such as
$("#editor").trumbowyg('html', string)
), or table content has been changed. In addition, correct the CSS selector ofcellhandle
.Reason: The
rebuildResizeLayers
is emitted via eventtbwchange.tbwTable
. And its variables (tableState
,targetColumnIndex
,$table
) used in mouse events come from different closures (caused byhasResizeLayers
).