Skip to content

CleanData after onChange between oneOf #129

Open
@chrisdr84

Description

@chrisdr84

When you select one of the list from the oneOf and move to un-select, the value is still saved in the container.

For example, select [An object] from the oneOf example and than select [].
When you getData(), the values are still stored in the container.

This kind of situation will mismatch the two function validate() and getData()
For example select [A multiple of 3] and fill with number 10.
The getData() will get the value 10 and the validate() will show error.

However, when you select [] and repeat the two function,
getData() will get the value 10 and validata() will show success.

http://brutusin.org/json-forms/#7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions