diff --git a/UI/Input/TextField.ts b/UI/Input/TextField.ts index f4e936612..a87d9fa17 100644 --- a/UI/Input/TextField.ts +++ b/UI/Input/TextField.ts @@ -131,6 +131,7 @@ export class TextField extends InputElement { el.rows = options.textAreaRows el.cols = 50 el.style.width = "100%" + el.dir = "auto" inputEl = el if (placeholderStore) { placeholderStore.addCallbackAndRunD((placeholder) => (el.placeholder = placeholder)) @@ -141,6 +142,7 @@ export class TextField extends InputElement { el.inputMode = options.inputMode el.placeholder = placeholder el.style.cssText = options.inputStyle ?? "width: 100%;" + el.dir = "auto" inputEl = el if (placeholderStore) { placeholderStore.addCallbackAndRunD((placeholder) => (el.placeholder = placeholder))