* feat: add observer for 'selected' setter of HTMLOptionElement and try to fix issue #746 * style: add description of mechanism
This commit is contained in:
@@ -491,7 +491,7 @@ function serializeNode(
|
||||
}
|
||||
}
|
||||
if (tagName === 'option') {
|
||||
if ((n as HTMLOptionElement).selected) {
|
||||
if ((n as HTMLOptionElement).selected && !maskInputOptions['select']) {
|
||||
attributes.selected = true;
|
||||
} else {
|
||||
// ignore the html attribute (which corresponds to DOM (n as HTMLOptionElement).defaultSelected)
|
||||
|
||||
Reference in New Issue
Block a user