meteor-typeahead icon indicating copy to clipboard operation
meteor-typeahead copied to clipboard

Pressing enter will no longer submit form

Open davidworkman9 opened this issue 9 years ago • 4 comments

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.

davidworkman9 avatar Feb 27 '15 19:02 davidworkman9

Hi, It's the same in my app, pressing enter doesn't submit the form now.

pawelos88 avatar Mar 11 '15 19:03 pawelos88

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"?

alochschmied avatar Mar 18 '15 13:03 alochschmied

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.

sergeyt avatar Mar 18 '15 15:03 sergeyt

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.

romant avatar Jun 28 '15 14:06 romant