This commit is contained in:
dwelle 2023-03-30 14:11:51 +02:00
parent 895f35ae18
commit 9dab749dfd
2 changed files with 8 additions and 6 deletions

View file

@ -1348,13 +1348,14 @@ class App extends React.Component<AppProps, AppState> {
return false;
}
}
return true;
// don't render text element that's being currently edited (it's
// rendered on remote only)
return (
!this.state.editingElement ||
this.state.editingElement.type !== "text" ||
element.id !== this.state.editingElement.id
);
// return (
// !this.state.editingElement ||
// this.state.editingElement.type !== "text" ||
// element.id !== this.state.editingElement.id
// );
});
const selectionColor = getComputedStyle(

View file

@ -304,7 +304,8 @@ export const textWysiwyg = ({
),
textAlign,
verticalAlign,
color: updatedTextElement.strokeColor,
// color: updatedTextElement.strokeColor,
color: "red",
opacity: updatedTextElement.opacity / 100,
filter: "var(--theme-filter)",
maxHeight: `${editorMaxHeight}px`,