fix: spreading

pull/16017/head
paoloricciuti 4 months ago
parent 68c30bca4c
commit 04768e4b2b

@ -87,19 +87,15 @@ export function RegularElement(node, context) {
'=',
b.id('$$payload.select_value'),
b.member(
b.call(
'$.spread_attributes',
build_spread_object(
node,
node.attributes.filter(
(attribute) =>
attribute.type === 'Attribute' ||
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
context
build_spread_object(
node,
node.attributes.filter(
(attribute) =>
attribute.type === 'Attribute' ||
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
b.null
context
),
'value',
false,

@ -211,19 +211,15 @@ export function build_element_attributes(node, context) {
'$.maybe_selected',
b.id('$$payload'),
b.member(
b.call(
'$.spread_attributes',
build_spread_object(
node,
node.attributes.filter(
(attribute) =>
attribute.type === 'Attribute' ||
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
context
build_spread_object(
node,
node.attributes.filter(
(attribute) =>
attribute.type === 'Attribute' ||
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
b.null
context
),
'value',
false,

Loading…
Cancel
Save