From f7953e46cf91695245fc6eb6c94bb158dcb5d763 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 14 Nov 2022 00:45:08 +0100 Subject: [PATCH] Add dir='auto' to textfields, see #1116 --- UI/Input/TextField.ts | 2 ++ 1 file changed, 2 insertions(+) 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))