Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

fix(mind): remove branchColor property setting (#46)

pubuzhixing8253889fc37a1
diff --git a/packages/drawnix/src/components/toolbar/popup-toolbar/popup-toolbar.tsx b/packages/drawnix/src/components/toolbar/popup-toolbar/popup-toolbar.tsx
index df433ec..5af9181 100644
--- a/packages/drawnix/src/components/toolbar/popup-toolbar/popup-toolbar.tsx
+++ b/packages/drawnix/src/components/toolbar/popup-toolbar/popup-toolbar.tsx
@@ -197,18 +197,6 @@ export const PopupToolbar: React.FC<PopupToolbarProps> = () => {
getMemorizeKey,
}
);
- const selectedElements = getSelectedElements(board);
-
- if (selectedElements.length) {
- selectedElements.forEach((element) => {
- const path = PlaitBoard.findPath(board, element);
- Transforms.setNode(
- board,
- { branchColor: getColorPropertyValue(selectedColor) },
- path
- );
- });
- }
}}
>
<label