diff --git a/src/internal-packages/database/lib/components/create-collection-dialog.jsx b/src/internal-packages/database/lib/components/create-collection-dialog.jsx index 90d15e0d1bc..99963b55612 100644 --- a/src/internal-packages/database/lib/components/create-collection-dialog.jsx +++ b/src/internal-packages/database/lib/components/create-collection-dialog.jsx @@ -73,8 +73,12 @@ class CreateCollectionDialog extends React.Component { /** * Initiate the attempt to create a collection. + * @param {Object} evt - The event object */ - onCreateCollectionButtonClicked() { + onCreateCollectionButtonClicked(evt) { + evt.preventDefault(); + evt.stopPropagation(); + this.setState({ inProgress: true, error: false, errorMessage: '' }); Actions.createCollection( this.state.databaseName, @@ -168,7 +172,10 @@ class CreateCollectionDialog extends React.Component { -
+ - +
- +
- +