Firefox caches last dropdown value on page load

2 posts, 1 answers
  1. Thien
    Thien avatar
    38 posts
    Member since:
    Aug 2014

    Posted 29 Jan 2015 Link to this post

    I have a simple dropdown and it works in Chrome however Firefox seems to cache the last value of the dropdown selection even after reloading the page

    @(Html.Kendo().DropDownList()
                          .Name("unit-selection")
                          .DataTextField("Text")
                          .DataValueField("Value")
                          .BindTo(new List<SelectListItem>() {
                              new SelectListItem() {
                                  Text = UtilSummary.Count,
                                  Value = "Count"
                              },
                              new SelectListItem() {
                                  Text = UtilSummary.Minutes,
                                  Value = "Minutes"
                              }
                          })
                          .Value("Count")
                        )

    Kendo version 2014.3.1119
    Firefox 35.0.1
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 02 Feb 2015 Link to this post

    Hello Thien,

    In general, Firefox has a built-in support for form population, which sometimes is unwanted feature. You can try to add autocomplete=off attribute to the widget or to the form to prevent this default behavior.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top