Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form validation, adding dinamic field get error in validaton #3141

Closed
radici opened this issue Oct 6, 2015 · 4 comments
Closed

Form validation, adding dinamic field get error in validaton #3141

radici opened this issue Oct 6, 2015 · 4 comments

Comments

@radici
Copy link

radici commented Oct 6, 2015

hi,
when add dinamically select combo to a form and add validation dinamically
i get and error:
Uncaught TypeError: Cannot assign to read only property 'identifier' of false

t.identifier=i

the i variable is not defined inside the form.js ?

@jeveloper
Copy link

+1 I'm seeing this as well.

Mainly happens when form contains at least one validation (semantic js) , When clicking away from the field (no matter if on: 'blur' or on: 'change' ) , this error shows up in console
Uncaught TypeError: Cannot assign to read only property 'identifier' of false , many times mind you

@jeveloper
Copy link

For developers, this is the area of code that fails:
if(!field.identifier) {
module.debug('Using field name as identifier', identifier);
field.identifier = identifier; //this is what fails
}

Line 1292

@geekus
Copy link

geekus commented Oct 9, 2015

I'm experiencing this in 2.1.4, but not in 2.1.3.

@IonutBajescu
Copy link
Member

In case anyone else is experiencing this issue, please upgrade to at least v2.1.5.

Closing the issue since it was fixed by #3131.

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

No branches or pull requests

4 participants