Skip to content

Commit 7840a2e

Browse files
authored
fix: hide table extend buttons when not editable #1848 (#1850)
1 parent 558a71e commit 7840a2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react/src/components/TableHandles/ExtendButton/ExtendButton.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ export const ExtendButton = <
211211
};
212212
}, [editingState, props.onMouseUp]);
213213

214+
if (!props.editor.isEditable) {
215+
return null;
216+
}
217+
214218
return (
215219
<Components.TableHandle.ExtendButton
216220
className={mergeCSSClasses(

0 commit comments

Comments
 (0)