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 false;
} }
} }
return true;
// don't render text element that's being currently edited (it's // don't render text element that's being currently edited (it's
// rendered on remote only) // rendered on remote only)
return ( // return (
!this.state.editingElement || // !this.state.editingElement ||
this.state.editingElement.type !== "text" || // this.state.editingElement.type !== "text" ||
element.id !== this.state.editingElement.id // element.id !== this.state.editingElement.id
); // );
}); });
const selectionColor = getComputedStyle( const selectionColor = getComputedStyle(

View file

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