Skip to content

Commit 7b71ad7

Browse files
authored
Merge pull request #2339 from mohamedaleya/fix-ide-project-options-not-collapsing
fix #2338 sidebar dropdown stays open after sidebar is closed
2 parents c1b5636 + 4823cff commit 7b71ad7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/modules/IDE/components/Editor.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,10 @@ class Editor extends React.Component {
500500
<button
501501
aria-label={this.props.t('Editor.OpenSketchARIA')}
502502
className="sidebar__contract"
503-
onClick={this.props.collapseSidebar}
503+
onClick={() => {
504+
this.props.collapseSidebar();
505+
this.props.closeProjectOptions();
506+
}}
504507
>
505508
<LeftArrowIcon focusable="false" aria-hidden="true" />
506509
</button>
@@ -588,6 +591,7 @@ Editor.propTypes = {
588591
).isRequired,
589592
isExpanded: PropTypes.bool.isRequired,
590593
collapseSidebar: PropTypes.func.isRequired,
594+
closeProjectOptions: PropTypes.func.isRequired,
591595
expandSidebar: PropTypes.func.isRequired,
592596
clearConsole: PropTypes.func.isRequired,
593597
hideRuntimeErrorWarning: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)