Skip to content

Commit

Permalink
fix(form-builder): add onClose handler on default asset source dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Mar 4, 2021
1 parent 3d8f9a4 commit 893bf44
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ export class DefaultSource extends React.Component<Props, State> {
const {assets, isLastPage, isLoading} = this.state

return (
<Dialog id={this._elementId} header="Select image" width={1} position="absolute">
<Dialog
id={this._elementId}
header="Select image"
width={1}
position="absolute"
onClose={this.handleClose}
>
<Box padding={2}>
<div className={styles.imageGrid}>
{assets.map((asset) => (
Expand Down

0 comments on commit 893bf44

Please sign in to comment.