diff --git a/.travis.yml b/.travis.yml index 17e65571b4b..3aeafe94aab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: required language: node_js node_js: - 6.3.1 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 11a1dd0e520..a25fe793a8c 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, @@ -163,7 +167,9 @@ class CreateCollectionDialog extends React.Component { -
+ - +
- +
- +