Skip to content

[Validation] Legacy Settings Detection Incorrectly Duck-Types #2629

Closed
@smangelsdorf

Description

JSFiddle: http://jsfiddle.net/jev4qec3/1/

If it's relevant, I'm using Chrome.

I hit this problem while porting an application forward from Semantic UI 1.x. After refactoring my validations to use the new form validation API, one form was still reporting the following error:

Form: Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.

After that, attempting to submit the form gives the following error:

Uncaught Error: Syntax error, unrecognized expression: #[object Object] 

The JSFiddle linked above has validations configured with an added underscore to work around the issue. Removing the underscore triggers the error.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions