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 {
516
516
< button
517
517
aria-label = { this . props . t ( 'Editor.OpenSketchARIA' ) }
518
518
className = "sidebar__contract"
519
- onClick = { this . props . collapseSidebar }
519
+ onClick = { ( ) => {
520
+ this . props . collapseSidebar ( ) ;
521
+ this . props . closeProjectOptions ( ) ;
522
+ } }
520
523
>
521
524
< LeftArrowIcon focusable = "false" aria-hidden = "true" />
522
525
</ button >
@@ -629,6 +632,7 @@ Editor.propTypes = {
629
632
) . isRequired ,
630
633
isExpanded : PropTypes . bool . isRequired ,
631
634
collapseSidebar : PropTypes . func . isRequired ,
635
+ closeProjectOptions : PropTypes . func . isRequired ,
632
636
expandSidebar : PropTypes . func . isRequired ,
633
637
clearConsole : PropTypes . func . isRequired ,
634
638
hideRuntimeErrorWarning : PropTypes . func . isRequired ,
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export default function SideBar() {
74
74
data-backdrop = "filedrawer"
75
75
onClick = { ( ) => {
76
76
dispatch ( collapseSidebar ( ) ) ;
77
+ dispatch ( closeProjectOptions ( ) ) ;
77
78
} }
78
79
>
79
80
{ ' ' }
You can’t perform that action at this time.
0 commit comments