Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Min and MaxLength validation of TextArea do nothing #415

Open
VincentKeltjens opened this issue May 8, 2018 · 0 comments
Open

Min and MaxLength validation of TextArea do nothing #415

VincentKeltjens opened this issue May 8, 2018 · 0 comments

Comments

@VincentKeltjens
Copy link

Setting the values for MinLength and MaxLength do no appear to trigger the invalid state of a TextArea.

Copied from http://formio.github.io/ngFormBuilder/ and added (which is also broken by the way, but not sure if there should be an issue for this...)

{
input: true,
tableView: true,
label: "Message",
key: "message",
placeholder: "What do you think?",
prefix: "",
suffix: "",
rows: 3,
multiple: false,
defaultValue: "",
protected: false,
persistent: true,
-validate: {
required: false,
minLength: "10",
maxLength: "25",
pattern: "",
custom: ""
},
type: "textarea",
-conditional: {
show: false,
when: null,
eq: ""
},
$$hashKey: "object:21",
autofocus: false,
hidden: false,
wysiwyg: false,
clearOnHide: true,
spellcheck: true
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant