Fix #932: `JSONEditor.update` broken, did not always recognize when the input changed
This commit is contained in:
parent
f954a81c05
commit
f356c875a1
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
https://github.com/josdejong/jsoneditor
|
https://github.com/josdejong/jsoneditor
|
||||||
|
|
||||||
|
## not yet published, version 8.6.3
|
||||||
|
|
||||||
|
- Fix #932: `JSONEditor.update` broken, did not always recognize when the
|
||||||
|
input changed. Regression introduced in `v8.6.2`.
|
||||||
|
|
||||||
|
|
||||||
## 2020-03-18, version 8.6.2
|
## 2020-03-18, version 8.6.2
|
||||||
|
|
||||||
- Fixed #917, #926: Keep order of properties when updating an object.
|
- Fixed #917, #926: Keep order of properties when updating an object.
|
||||||
|
|
|
@ -1496,7 +1496,8 @@ export class Node {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
for (i = 0; i < props.length; i++) {
|
for (i = 0; i < props.length; i++) {
|
||||||
if (this.childs[i].field !== props[i]) {
|
const child = this.childs[i]
|
||||||
|
if (child.field !== props[i] || !child.deepEqual(json[child.field])) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue