diff --git a/src/react-components/create-object-dialog.js b/src/react-components/create-object-dialog.js index 98d1fb7f3bf87443c6eb001d9c80f27082966b26..145fda14472b497f7c6b62c8235f699c409c13c9 100644 --- a/src/react-components/create-object-dialog.js +++ b/src/react-components/create-object-dialog.js @@ -71,7 +71,8 @@ export default class CreateObjectDialog extends Component { }); }; - onCreateClicked = () => { + onCreateClicked = e => { + e.preventDefault(); this.props.onCreateObject(this.state.file || this.state.url || DEFAULT_OBJECT_URL); this.props.onCloseDialog(); };