mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
copy defaultSelected in cloneFixAttributes
This commit is contained in:
parent
32842ac365
commit
1d1c80d377
@ -491,7 +491,7 @@ function cloneFixAttributes( src, dest ) {
|
||||
// IE6-8 fails to return the selected option to the default selected
|
||||
// state when cloning options
|
||||
} else if ( nodeName === "option" ) {
|
||||
dest.selected = src.defaultSelected;
|
||||
dest.defaultSelected = dest.selected = src.defaultSelected;
|
||||
|
||||
// IE6-8 fails to set the defaultValue to the correct value when
|
||||
// cloning other types of input fields
|
||||
|
Loading…
Reference in New Issue
Block a user