Update src/state/translations-mixin.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Yosi Levy 2022-05-10 18:25:28 +03:00 committed by GitHub
parent 6c73ae5bf7
commit f09c842981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,9 +195,7 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
this.style.setProperty("--rtl-dir", "rtl"); this.style.setProperty("--rtl-dir", "rtl");
} else { } else {
// clear all custom properties (can't use "all" for this) // clear all custom properties (can't use "all" for this)
for (let i = this.style.length; i--; ) { this.style = "";
this.style.removeProperty(this.style[i]);
}
this.style.direction = "ltr"; this.style.direction = "ltr";
} }