Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(table): cells unresizable after table changed and add cellHandles… #1473

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zymbth
Copy link

@zymbth zymbth commented Jul 3, 2024

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 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant