|
|
@ -491,7 +491,7 @@ export function attribute_effect(
|
|
|
|
var current = set_attributes(element, prev, next, css_hash, skip_warning);
|
|
|
|
var current = set_attributes(element, prev, next, css_hash, skip_warning);
|
|
|
|
|
|
|
|
|
|
|
|
if (inited && is_select && 'value' in next) {
|
|
|
|
if (inited && is_select && 'value' in next) {
|
|
|
|
select_option(/** @type {HTMLSelectElement} */ (element), next.value, false);
|
|
|
|
select_option(/** @type {HTMLSelectElement} */ (element), next.value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (let symbol of Object.getOwnPropertySymbols(effects)) {
|
|
|
|
for (let symbol of Object.getOwnPropertySymbols(effects)) {
|
|
|
@ -514,10 +514,9 @@ export function attribute_effect(
|
|
|
|
|
|
|
|
|
|
|
|
if (is_select) {
|
|
|
|
if (is_select) {
|
|
|
|
var select = /** @type {HTMLSelectElement} */ (element);
|
|
|
|
var select = /** @type {HTMLSelectElement} */ (element);
|
|
|
|
var mounting = true;
|
|
|
|
|
|
|
|
effect(() => {
|
|
|
|
effect(() => {
|
|
|
|
select_option(select, /** @type {Record<string | symbol, any>} */ (prev).value, mounting);
|
|
|
|
select_option(select, /** @type {Record<string | symbol, any>} */ (prev).value, true);
|
|
|
|
mounting = false;
|
|
|
|
|
|
|
|
init_select(select);
|
|
|
|
init_select(select);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|