Jquery UI button gets disabled on refresh

后端 未结 5 549
醉酒成梦
醉酒成梦 2021-02-08 10:16

I asked about this on the jquery forum a few weeks ago without luck, so I will try again here :)

I\'ve made a simple widget for a project I\'m working on, but I have enc

5条回答
  •  春和景丽
    2021-02-08 10:52

    I believe this is a bug in how Firefox remembers form field/control values and states:

    1. After the first page load, there are three
    2. Firefox remembers that the second
    3. After a page refresh, before any scripts are run, Firefox restores form fields and controls. It disables the second
    4. When jQuery UI creates the styled button for

    There are two issues here:

    1. How Firefox remembers which elements are disabled. It's not taking into account dynamic elements. I suggest filing a bug with Mozilla for this.
    2. Form elements stay disabled after a page refresh. I'm not sure if this is the correct behaviour, but there are two bugzilla reports on this.

    The test case can simplify down to just adding a

提交回复
热议问题