prevent form from being submitted when enter is pressed in multiselect. fixes #961
This commit is contained in:
parent
dd34cc5d67
commit
911a0bb082
@ -2155,6 +2155,12 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
// prevent the page from scrolling
|
// prevent the page from scrolling
|
||||||
killEvent(e);
|
killEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.which === KEY.ENTER) {
|
||||||
|
// prevent form from being submitted
|
||||||
|
killEvent(e);
|
||||||
|
}
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.search.bind("keyup", this.bind(this.resizeSearch));
|
this.search.bind("keyup", this.bind(this.resizeSearch));
|
||||||
|
Loading…
Reference in New Issue
Block a user