File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 { ' ' }
You can’t perform that action at this time.
0 commit comments