meteor-typeahead
meteor-typeahead copied to clipboard
Pressing enter will no longer submit form
I'm currently using this with my meteor-editable package in an app. For some reason my app decided to update yesterday from 0.10.5_9
to 0.10.5_12
. Didn't think much of it at first but now my tests fail. The form I have it in in has no submit button, it relies on enter being pressed to submit the form this previously worked and no longer does. I did a diff between the two version commit shas and couldn't see anything that stood out as to why this would be happening.
Hi, It's the same in my app, pressing enter doesn't submit the form now.
I am not sure if I am facing the same problem.
When I start typing the suggestions do appear and it works perfectly when I choose one by clicking with the mouse. However if I decide to just type and press enter, the suggestions list is not closed.
Is it supposed to close and if not, is there an API call that I can make after detecting "return pressed"?
All UI related behavior issues should be directed to twitter typeahead.js project since this repo is small wrapper around typeahead.js with friendly API for meteor integration. Try yo find similar issues in typeahead.js project or reproduce them in non-meteor browser environment.
Also it should be feasible to debug/detect what event handler prevents form submission.
Hi @sergeyt - thank you for putting this wrapper together. Very useful.
I too stumbled upon the blocking of the form submission.
Simply navigating to typeahed.js and entering anything followed by hitting enter
- submits their form. Yet this is blocked with the current installation of the meteor-typeahead
.