|
|
|
|
@ -50,16 +50,6 @@ export function set_text(text, value) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {HTMLElement} element
|
|
|
|
|
*/
|
|
|
|
|
export function set_direction(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.
|
|
|
|
|
// eslint-disable-next-line no-self-assign
|
|
|
|
|
element.dir = element.dir;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {Comment} anchor
|
|
|
|
|
* @param {void | ((anchor: Comment, slot_props: Record<string, unknown>) => void)} slot_fn
|
|
|
|
|
|