DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
221 stars 78 forks source link

TypeAhead Items and MinLength are Incorrect #367

Closed ghost closed 9 years ago

ghost commented 9 years ago

I am trying to include a TypeAhead textbox that shows 20 items max and has a minlength of 3, but when the page loads and TypeAhead functionality executes, the default settings are used (items=8 and minlength=1). Here is how I'm declaring the TypeAhead textbox on the page:

<div>
    @Html.Bootstrap().TextBox("startSearch").TypeAhead(new TypeAhead().Controller("MyController").Action("StartSearch").Items(20).MinLength(3))
</div>

Any ideas as to why the default values are overriding the values shown in the example?

DmitryEfimenko commented 9 years ago

This is fixed in the latest. FYI, the issue was with the JavaScript file, so make sure you get that updated to the latest.

ghost commented 9 years ago

Thanks, it works as expected now.