Skip to content

Commit

Permalink
revert iseditable checks
Browse files Browse the repository at this point in the history
  • Loading branch information
neysanfoo committed Oct 13, 2024
1 parent 711debc commit 190ff50
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ function TableHoverActionsContainer({

const debouncedOnMouseMove = useDebounce(
(event: MouseEvent) => {
if (!isEditable) {
return;
}
const {isOutside, tableDOMNode} = getMouseInfo(event);

if (isOutside) {
Expand Down Expand Up @@ -156,9 +153,6 @@ function TableHoverActionsContainer({
editor.registerMutationListener(
TableNode,
(mutations) => {
if (!isEditable) {
return;
}
editor.getEditorState().read(() => {
for (const [key, type] of mutations) {
switch (type) {
Expand All @@ -181,12 +175,9 @@ function TableHoverActionsContainer({
{skipInitialization: false},
),
);
}, [editor, isEditable]);
}, [editor]);

const insertAction = (insertRow: boolean) => {
if (!isEditable) {
return;
}
editor.update(() => {
if (tableDOMNodeRef.current) {
const maybeTableNode = $getNearestNodeFromDOMNode(
Expand Down

0 comments on commit 190ff50

Please sign in to comment.