This is a migrated thread and some comments may be shown as answers.

Firefox caches last dropdown value on page load

1 Answer 106 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Thien
Top achievements
Rank 1
Thien asked on 29 Jan 2015, 09:35 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 02 Feb 2015, 01:22 PM
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!
 
Tags
DropDownList
Asked by
Thien
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or