File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ class SketchList extends React.Component {
214
214
role = "presentation"
215
215
className = "sketch-list__action-option"
216
216
onClick = { ( ) => {
217
+ this . closeAllDropdowns ( ) ;
217
218
this . props . cloneProject ( sketch . id ) ;
218
219
} }
219
220
>
@@ -223,6 +224,7 @@ class SketchList extends React.Component {
223
224
role = "presentation"
224
225
className = "sketch-list__action-option"
225
226
onClick = { ( ) => {
227
+ this . closeAllDropdowns ( ) ;
226
228
this . props . showShareModal ( sketch . id , sketch . name ) ;
227
229
} }
228
230
>
@@ -233,8 +235,8 @@ class SketchList extends React.Component {
233
235
className = "sketch-list__action-option"
234
236
onClick = { ( e ) => {
235
237
e . stopPropagation ( ) ;
238
+ this . closeAllDropdowns ( ) ;
236
239
if ( window . confirm ( `Are you sure you want to delete "${ sketch . name } "?` ) ) {
237
- this . closeAllDropdowns ( ) ;
238
240
this . props . deleteProject ( sketch . id ) ;
239
241
}
240
242
} }
@@ -273,7 +275,6 @@ SketchList.propTypes = {
273
275
} )
274
276
} ) ,
275
277
cloneProject : PropTypes . func . isRequired ,
276
- // autosaveProject: PropTypes.func.isRequired,
277
278
exportProjectAsZip : PropTypes . func . isRequired ,
278
279
changeProjectName : PropTypes . func . isRequired
279
280
} ;
You can’t perform that action at this time.
0 commit comments