Skip to content

Commit

Permalink
Fix outdated value in column resize custom input
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Apr 15, 2024
1 parent 6093079 commit ca3e978
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ export default class TableColumnResizeUI extends Plugin {
} );
}

// Ensure that command value is always up to date. Column resizing does not trigger command refresh all of the time.
// In some scenarios like resizing column and then undoing this the plugins are not refreshed and value is outdated.
command.refresh();

// Make sure that each time the panel shows up, the field remains in sync with the value of
// the command. If the user typed in the input, then canceled the balloon (`labeledInput#value`
// stays unaltered) and re-opened it without changing the value of the command, they would see the
Expand Down

0 comments on commit ca3e978

Please sign in to comment.