Skip to content

Commit 1986493

Browse files
committed
Revert "probably not the best fix but oh well"
This reverts commit 2c5965c.
1 parent 7a30a54 commit 1986493

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
/** @import { SourceLocation } from '#shared' */
44
/** @import { ComponentClientTransformState, ComponentContext } from '../types' */
55
/** @import { Scope } from '../../../scope' */
6-
import { escape_html } from '../../../../../escaping.js';
76
import {
87
cannot_be_set_statically,
98
is_boolean_attribute,
109
is_dom_property,
1110
is_load_error_element,
1211
is_void
1312
} from '../../../../../utils.js';
13+
import { escape_html } from '../../../../../escaping.js';
1414
import { dev, is_ignored, locator } from '../../../../state.js';
1515
import { is_event_attribute, is_text_attribute } from '../../../../utils/ast.js';
1616
import * as b from '../../../../utils/builders.js';
1717
import { is_custom_element_node } from '../../../nodes.js';
1818
import { clean_nodes, determine_namespace_for_children } from '../../utils.js';
1919
import { build_getter } from '../utils.js';
2020
import {
21+
get_attribute_name,
2122
build_attribute_value,
2223
build_class_directives,
23-
build_set_attributes,
2424
build_style_directives,
25-
get_attribute_name
25+
build_set_attributes
2626
} from './shared/element.js';
27-
import { visit_event_attribute } from './shared/events.js';
2827
import { process_children } from './shared/fragment.js';
2928
import {
3029
build_render_statement,
3130
build_template_chunk,
3231
build_update_assignment,
3332
get_expression_id
3433
} from './shared/utils.js';
34+
import { visit_event_attribute } from './shared/events.js';
3535

3636
/**
3737
* @param {AST.RegularElement} node
@@ -693,7 +693,6 @@ function build_element_special_value_attribute(element, node_id, attribute, cont
693693
);
694694

695695
if (is_select_with_value) {
696-
let { value } = build_attribute_value(attribute.value, context);
697696
state.init.push(b.stmt(b.call('$.init_select', node_id, b.thunk(value))));
698697
}
699698

0 commit comments

Comments
 (0)