From 21251b5b793e2cd10ca9eb9152d8832e7994827c Mon Sep 17 00:00:00 2001 From: Kirill Lakhov Date: Fri, 25 Mar 2022 13:22:35 +0300 Subject: [PATCH] added reset of activeShapeType (#4517) --- .../controls-side-bar/setup-tag-popover.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cvat-ui/src/containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover.tsx b/cvat-ui/src/containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover.tsx index 7004505f..77448c11 100644 --- a/cvat-ui/src/containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover.tsx +++ b/cvat-ui/src/containers/annotation-page/standard-workspace/controls-side-bar/setup-tag-popover.tsx @@ -1,4 +1,4 @@ -// Copyright (C) 2020-2021 Intel Corporation +// Copyright (C) 2020-2022 Intel Corporation // // SPDX-License-Identifier: MIT @@ -32,7 +32,11 @@ function mapDispatchToProps(dispatch: any): DispatchToProps { dispatch(createAnnotationsAsync(sessionInstance, frame, states)); }, onRememberObject(labelID: number): void { - dispatch(rememberObject({ activeObjectType: ObjectType.TAG, activeLabelID: labelID })); + dispatch(rememberObject({ + activeObjectType: ObjectType.TAG, + activeLabelID: labelID, + activeShapeType: undefined, + })); }, }; }