Add dir='auto' to textfields, see #1116
This commit is contained in:
parent
b68a140af9
commit
f7953e46cf
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,7 @@ export class TextField extends InputElement<string> {
|
|||
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<string> {
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue