From 668d7f7e0916ef5d7dcca326277d102aab647c54 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 30 Jul 2024 16:42:21 +0200 Subject: [PATCH] fix remove ribbon button ux --- src/in-page-ui/ribbon/react/components/ribbon.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/in-page-ui/ribbon/react/components/ribbon.tsx b/src/in-page-ui/ribbon/react/components/ribbon.tsx index ec2a88b1d2..7d94b56e6e 100644 --- a/src/in-page-ui/ribbon/react/components/ribbon.tsx +++ b/src/in-page-ui/ribbon/react/components/ribbon.tsx @@ -1986,12 +1986,9 @@ export default class Ribbon extends Component { {!this.props.sidebar.isSidebarOpen && ( { - if (!this.props.showRemoveMenu) { + if (event.shiftKey) { this.props.toggleRemoveMenu() - } - }} - onMouseUp={(event) => { - if (!this.props.showRemoveMenu) { + } else { this.props.handleRemoveRibbon() } }}