-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Typeahead input with form-inline #262
Comments
This is a problem that I found too. Spent some time trying to get a fix On 25 March 2013 03:05, drozzy [email protected] wrote:
|
My current solution is to use grids - and put the typeahead input into it's own cell of |
@drozzy did you try this with vanilla bootstrap? From what I can see they are also attaching dropdown with matches after an input (https://github.com/twitter/bootstrap/blob/master/js/bootstrap-typeahead.js#L64). Could you give it a try and eventually open an issue in the bootstrap's repo? |
Reproduce scenario is anyone is curious to have a look: http://plnkr.co/edit/HEZlMT?p=preview |
@drozzy A simpler solution could be to wrap the typeahead inside a Here I used inline css but you got the idea. The problem is just that bootstrap define a css rule for Obviously this is just a fix to make it possible to use typeahead in this scenario, starting from this maybe we could think about a good way to modify the typeahead so that this won't happen. |
Really this is a bug in twitter bootstrap, me thinks On 26 March 2013 23:01, Gabriele Rabbiosi [email protected] wrote:
|
@petebacondarwin no, it's not a twitter bootstrap bug. Take a look here: http://plnkr.co/edit/hqyMjF?p=preview The twitter bootstrap typeahead works correctly because the dropdown-menu somehow does not "break" the edit: it seems that the typeahead dropdown menu from twitter bootstrap is just a |
Oh dear, the joy of positioning... Thnx @redaemn for looking into this one... I think I've taken markup for the template from some other PR and didn't spend too much time on it. Honestly it was nice since didn't require me to calculate positioning as original typeahead does. I won't be able to get back to this one anytime soon (as we've got a work-around and I would like to focus on functionality fixes first) but it would be awesome if anyone would like to look into this one. |
@pkozlowski-opensource yes, I think that we will need to calculate positioning inside the directive; would it be a problem? Also, I'm trying to use |
I started to look into a framework fix for this one (just for fun) but how am I supposed to dynamically position the menu based on the |
That's probably why Pawel didn't implement it in the first place! On 27 March 2013 22:28, Gabriele Rabbiosi [email protected] wrote:
|
This can be fixed by #326 @redaemn Thnx for the experiments in #276, this was good inspiration. Finally I did something similar but extracted relevant code to a separate service. There was also a problem with watching DOM properties which is slow. |
@pkozlowski-opensource happy to have been of help!! :D I thought that probably watching could be too slow but I didn't spent any time thinking about a better solution, it was just the first idea that came to mind. |
Add callback for removal of items from multi-select
So I tried to use typeahead with Bootstrap's
.form-inline
style Forms, but because of the hidden div, the control causes any subsequentinput
fields to start at a new line.I'm no css guru. but is there an easy way to fix this?
The text was updated successfully, but these errors were encountered: