Skip to content

Commit f0490b8

Browse files
committed
sidebar dropdown fix
1 parent 8d36f7e commit f0490b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ class Editor extends React.Component {
516516
<button
517517
aria-label={this.props.t('Editor.OpenSketchARIA')}
518518
className="sidebar__contract"
519-
onClick={this.props.collapseSidebar}
519+
onClick={() => {
520+
this.props.collapseSidebar();
521+
this.props.closeProjectOptions();
522+
}}
520523
>
521524
<LeftArrowIcon focusable="false" aria-hidden="true" />
522525
</button>
@@ -629,6 +632,7 @@ Editor.propTypes = {
629632
).isRequired,
630633
isExpanded: PropTypes.bool.isRequired,
631634
collapseSidebar: PropTypes.func.isRequired,
635+
closeProjectOptions: PropTypes.func.isRequired,
632636
expandSidebar: PropTypes.func.isRequired,
633637
clearConsole: PropTypes.func.isRequired,
634638
hideRuntimeErrorWarning: PropTypes.func.isRequired,

client/modules/IDE/components/Sidebar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export default function SideBar() {
7474
data-backdrop="filedrawer"
7575
onClick={() => {
7676
dispatch(collapseSidebar());
77+
dispatch(closeProjectOptions());
7778
}}
7879
>
7980
{' '}

0 commit comments

Comments
 (0)