pull/12890/head
Rich Harris 2 years ago
parent 903dc28287
commit f8e1c7c4f9

@ -367,9 +367,8 @@ export function RegularElement(node, context) {
if (has_direction_attribute) { if (has_direction_attribute) {
// This fixes an issue with Chromium where updates to text content within an element // This fixes an issue with Chromium where updates to text content within an element
// does not update the direction when set to auto. If we just re-assign the dir, this fixes it. // does not update the direction when set to auto. If we just re-assign the dir, this fixes it.
context.state.update.push( const dir = b.member(node_id, 'dir');
b.stmt(b.assignment('=', b.member(node_id, 'dir'), b.member(node_id, 'dir'))) context.state.update.push(b.stmt(b.assignment('=', dir, dir)));
);
} }
if (child_locations.length > 0) { if (child_locations.length > 0) {

Loading…
Cancel
Save