Commit 1d1c80d3 authored by Richard Gibson's avatar Richard Gibson

copy defaultSelected in cloneFixAttributes

parent 32842ac3
...@@ -491,7 +491,7 @@ function cloneFixAttributes( src, dest ) { ...@@ -491,7 +491,7 @@ function cloneFixAttributes( src, dest ) {
// IE6-8 fails to return the selected option to the default selected // IE6-8 fails to return the selected option to the default selected
// state when cloning options // state when cloning options
} else if ( nodeName === "option" ) { } 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 // IE6-8 fails to set the defaultValue to the correct value when
// cloning other types of input fields // cloning other types of input fields
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment