Sara Iftikhar
Sara Iftikhar

Reputation: 23

Kendo UI Combobox - Dropdown closes immediately in firefox

Here is my code. It works fine on chrome but in firefox as i click the dropdown it appears for a sec and then disappears. Where am I mistaken ?

<div class="form-group">
  <label for="deliveryaddress">Adress 
    <span id="limitMsg" style="font-size:12px !important; font-weight: bold !important; color:red !important;"></span>
  </label>
  @(Html.Kendo().ComboBox()
  .Name("deliveryadress")
  .DataTextField("Text")
  .DataValueField("Value")
  .Filter(FilterType.Contains)
  .MinLength(3)
  .Placeholder("Börja skriva gatuadress för att söka...")
  .Suggest(true)
  .AutoBind(false)
  .HtmlAttributes(new { style = "width:100%;", @class = "deliveryformclass" })
  .DataSource(source =>
  {
  source.Read(read =>
  {
  read.Action("SearchAdress", "Home");
  })
  .ServerFiltering(true);
  })
  )
</div>

Upvotes: 1

Views: 2041

Answers (1)

wewedroid
wewedroid

Reputation: 68

I have a similar problem but in chrome, I notice that it happens when your combobox is all the way in the bottom without enough space for the dropdown to open. Try adding a space at the bottom with an empty div and see if it works. It worked for me.

Hope this helps :)

Upvotes: 1

Related Questions