Skip to content

Commit 969145a

Browse files
authored
fix(polygon-editor): fixup polygonEditor hide issue (#397)
1 parent 2cdec35 commit 969145a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/polygon-editor/src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export const PolygonEditor = forwardRef<PolygonEditorProps, PolygonEditorProps>(
3838
} else if (!visiable && active && polygon) {
3939
polyEditor.close();
4040
props.onEnd && props.onEnd({ target: polygon });
41+
} else if (!visiable && !active && polygon) {
42+
polyEditor.close();
4143
}
4244
}, [active, visiable, polygon]);
4345

0 commit comments

Comments
 (0)