We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cdec35 commit 969145aCopy full SHA for 969145a
1 file changed
packages/polygon-editor/src/index.tsx
@@ -38,6 +38,8 @@ export const PolygonEditor = forwardRef<PolygonEditorProps, PolygonEditorProps>(
38
} else if (!visiable && active && polygon) {
39
polyEditor.close();
40
props.onEnd && props.onEnd({ target: polygon });
41
+ } else if (!visiable && !active && polygon) {
42
+ polyEditor.close();
43
}
44
}, [active, visiable, polygon]);
45
0 commit comments