Skip to content

Commit

Permalink
copy defaultSelected in cloneFixAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Dec 12, 2012
1 parent 32842ac commit 1d1c80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manipulation.js
Expand Up @@ -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
Expand Down

0 comments on commit 1d1c80d

Please sign in to comment.