mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 17:24:54 -05:00
Fix #12127, fer real. IE9/10 check state on clone. Close gh-875.
This commit is contained in:
committed by
Dave Methvin
parent
a475f1aa4d
commit
155855b2a9
@@ -455,9 +455,8 @@ function cloneFixAttributes( src, dest ) {
|
||||
// IE6-8 fails to persist the checked state of a cloned checkbox
|
||||
// or radio button. Worse, IE6-7 fail to give the cloned element
|
||||
// a checked appearance if the defaultChecked value isn't also set
|
||||
if ( src.checked ) {
|
||||
dest.defaultChecked = dest.checked = src.checked;
|
||||
}
|
||||
|
||||
dest.defaultChecked = dest.checked = src.checked;
|
||||
|
||||
// IE6-7 get confused and end up setting the value of a cloned
|
||||
// checkbox/radio button to an empty string instead of "on"
|
||||
|
||||
Reference in New Issue
Block a user