Skip to content

Commit efd4347

Browse files
committed
Added onCancel implementation
1 parent 14557d5 commit efd4347

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controls/filePicker/FilePicker.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ export class FilePicker extends React.Component<IFilePickerProps, IFilePickerSta
206206
* Closes the panel
207207
*/
208208
private _handleClosePanel = () => {
209+
if (this.props.onCancel !== undefined) {
210+
this.props.onCancel();
211+
}
209212
this.setState({
210213
panelOpen: false
211214
});

0 commit comments

Comments
 (0)