Bug With Firefox - Disabled Attribute of Input Not Resetting When Refreshing

后端 未结 4 1873
一向
一向 2020-11-28 20:58

I\'ve found what I believe to be a bug with Firefox and I\'m wondering if this actually is a bug, as well as any workarounds for this.

If you create a basic webpage

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 21:15

    This is a "feature" of Firefox which remembers form input values across page refreshes. To fix this behavior, you simply set autocomplete="off" on the form containing the inputs, or just directly to the input.

    This stops autocomplete from working and prevents the browser from remembering the state of input fields.

    Alternatively, you can just "hard-refresh" by clicking CTRL+F5. This will completely reset the current page.

提交回复
热议问题