You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When add a typehead to a scrollable element the placement (height) of the typeahead dropdown is calculated wrong, See: http://bootply.com/66845 (remove the javascript to see the problem)
The scrollHeight (int or function) option can be used to correct this problem.
This issue has been fixed. For TB3 there is no need for this fixes to use in Modal. In TB3 the modal scrolls over the viewport instead of scrolling it self. The dropdown position won't change when scolling the viewport.
Fixes are still useful when using this plugin with Twitter's Bootstrap <3.0 (like 2.3.2).
When add a typehead to a scrollable element the placement (height) of the typeahead dropdown is calculated wrong, See: http://bootply.com/66845 (remove the javascript to see the problem)
The scrollHeight (int or function) option can be used to correct this problem.
Example for typeahead input in the Modal use:
scrollHeight: function() { return $('.modal-body').scrollTop(); }
Refer: twbs/bootstrap#8436
Example: http://stackoverflow.com/questions/17548252/multiple-fields-with-twitters-bootstrap-typehead-inside-a-modal/17559998
The text was updated successfully, but these errors were encountered: