Skip to content

Commit

Permalink
expand table balance targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Sep 2, 2018
1 parent 2cbd5ea commit 5102cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Table extends Module {
listenBalanceCells() {
this.quill.on(Quill.events.SCROLL_OPTIMIZE, mutations => {
mutations.some(mutation => {
if (mutation.target.tagName === 'TABLE') {
if (['TD', 'TR', 'TBODY', 'TABLE'].includes(mutation.target.tagName)) {
this.quill.once(Quill.events.TEXT_CHANGE, (delta, old, source) => {
if (source !== Quill.sources.USER) return;
this.balanceTables();
Expand Down

0 comments on commit 5102cec

Please sign in to comment.