jquery.AreYouSure icon indicating copy to clipboard operation
jquery.AreYouSure copied to clipboard

Cannot undirty if there is a disabled field

Open sky3913 opened this issue 9 years ago • 2 comments

I have disabled dropdown in my page. It will be enabled if the previous dropdown is selected (cascade dropdown). If I made a changes and view the source a class="dirty" will be added into the <form> tag, then if I removed the changes (back to the initial state) the dirty class is not removed.

Then, I tried to remove disabled attribute in the dropdown and everything is going to work well. Doesn't it work if there is a disabled field?

sky3913 avatar Feb 04 '16 03:02 sky3913

I had a similar issue. You probably don't want the dropdowns to be checked for dirtyness. Consider adding the ays-ignore class or data-ays-ignore attribute: Field 2: (ignored): <input type="text" name="field2" data-ays-ignore="true"> <br /> Field 3: (ignored): <input type="text" name="field3" class="ays-ignore"> <br />

davidp1978 avatar Mar 04 '16 07:03 davidp1978

@davidp1978 Actually, I want this plugin work if there is a disabled field, but in the fact, it doesn't work.

sky3913 avatar Mar 08 '16 07:03 sky3913