Commit 80c7121a authored by Boris Kocherov's avatar Boris Kocherov

continue ignore_incorrect for render_const()

parent ea9140ee
......@@ -259,10 +259,14 @@
ser_doc = JSON.stringify(json_document),
ser_const = JSON.stringify(schema.const);
input.setAttribute('readonly', true);
if (json_document === undefined || deepEqual(json_document, schema.const)) {
if (json_document === undefined || g.props.ignore_incorrect ||
deepEqual(json_document, schema.const)) {
if (json_document === undefined) {
g.props.changed = true;
}
if (!deepEqual(json_document, schema.const)) {
g.props.changed = true;
}
input.setAttribute('data-origin-value', ser_const);
if (schema.title) {
input.value = schema.title;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment