forked from MapComplete/MapComplete
Fix text-area type, support for newlines in key substitutions (fix #543), small tweaks to etymology-theme (fix #537)
This commit is contained in:
parent
7839712deb
commit
fdb769a0fc
6 changed files with 19 additions and 10 deletions
|
@ -196,7 +196,7 @@ export default class ValidatedTextField {
|
|||
"A basic string"),
|
||||
ValidatedTextField.tp(
|
||||
"text",
|
||||
"A string, but allows input of longer strings more comfortably (a text area)",
|
||||
"A string, but allows input of longer strings more comfortably and supports newlines (a text area)",
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
|
@ -473,6 +473,9 @@ export default class ValidatedTextField {
|
|||
|
||||
|
||||
options.inputMode = tp.inputmode;
|
||||
if(tp.inputmode === "text") {
|
||||
options.htmlType = "area"
|
||||
}
|
||||
|
||||
|
||||
let input: InputElement<string> = new TextField(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue