Skip to content

Commit 039a0db

Browse files
rueckstiesskangas
authored andcommitted
INT-382 more fixes for query refine bar
- only accept enter when the query is valid - accept $eq as a valid ValueOperator (fixed in mongodb-language-model 0.2.1)
1 parent e1e1b84 commit 039a0db

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"lodash": "^3.9.3",
7979
"moment": "^2.10.3",
8080
"mongodb-extended-json": "^1.3.1",
81-
"mongodb-language-model": "^0.2.0",
81+
"mongodb-language-model": "^0.2.1",
8282
"mongodb-schema": "^3.0.0",
8383
"numeral": "^1.5.3",
8484
"octicons": "https://github.com/github/octicons/archive/v2.2.0.tar.gz",

src/refine-view/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ module.exports = AmpersandView.extend({
7474
},
7575
submit: function(evt) {
7676
evt.preventDefault();
77-
this.buttonClicked();
77+
if (this.valid) {
78+
this.buttonClicked();
79+
}
7880
}
7981
});

0 commit comments

Comments
 (0)