diff --git a/src/state/translations-mixin.ts b/src/state/translations-mixin.ts index 37f7d9893d..30dd7578b7 100644 --- a/src/state/translations-mixin.ts +++ b/src/state/translations-mixin.ts @@ -195,9 +195,7 @@ export default >(superClass: T) => this.style.setProperty("--rtl-dir", "rtl"); } else { // clear all custom properties (can't use "all" for this) - for (let i = this.style.length; i--; ) { - this.style.removeProperty(this.style[i]); - } + this.style = ""; this.style.direction = "ltr"; }