File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ export class ResetRevertDialog extends React.Component<
106
106
paper : resetRevertDialogClass
107
107
} }
108
108
open = { this . props . open }
109
+ onClick = { this . _onClick }
109
110
onClose = { this . _onClose }
110
111
>
111
112
< div className = { titleWrapperClass } >
@@ -193,19 +194,28 @@ export class ResetRevertDialog extends React.Component<
193
194
} ) ;
194
195
} ;
195
196
197
+ /**
198
+ * Callback invoked upon clicking on a dialog.
199
+ *
200
+ * @param event - event object
201
+ */
202
+ private _onClick = ( event : any ) : void => {
203
+ event . stopPropagation ( ) ;
204
+ } ;
205
+
196
206
/**
197
207
* Callback invoked upon closing the dialog.
198
208
*
199
209
* @param event - event object
200
210
*/
201
211
private _onClose = ( event : any ) : void => {
202
212
event . stopPropagation ( ) ;
213
+ this . props . onClose ( ) ;
203
214
this . setState ( {
204
215
summary : '' ,
205
216
description : '' ,
206
217
disabled : false
207
218
} ) ;
208
- this . props . onClose ( ) ;
209
219
} ;
210
220
211
221
/**
You can’t perform that action at this time.
0 commit comments