We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5589b66 commit 7905c11Copy full SHA for 7905c11
1 file changed
packages/core/src/extensions/TableHandles/TableHandles.ts
@@ -296,9 +296,13 @@ export class TableHandlesView implements PluginView {
296
event.clientX >= tableRect.right - 1 &&
297
event.clientX < tableRect.right + 20;
298
299
- // without this check, we'd also hide draghandles when hovering over them
300
const hideHandles =
301
- event.clientX > tableRect.right || event.clientY > tableRect.bottom;
+ // always hide handles when the actively hovered table changed
+ this.state?.block.id !== tableBlock.id ||
302
+ // make sure we don't hide existing handles (keep col / row index) when
303
+ // we're hovering just above or to the right of a table
304
+ event.clientX > tableRect.right ||
305
+ event.clientY > tableRect.bottom;
306
307
this.state = {
308
...this.state!,
0 commit comments