Fixed #769: option `name` not working anymore
This commit is contained in:
parent
ca6e384e8d
commit
174918f4eb
|
@ -8,6 +8,7 @@ https://github.com/josdejong/jsoneditor
|
|||
`preview` when `statusBar: false`.
|
||||
- When duplicating an object property, move focus to the field and do not
|
||||
immediately add the ` (copy)` suffix. See #766.
|
||||
- Fixed #769: option `name` not working anymore. Regression since `v6.1.0`.
|
||||
|
||||
|
||||
## 2019-08-01, version 6.2.1
|
||||
|
|
|
@ -375,7 +375,7 @@ treemode._setRoot = function (node) {
|
|||
|
||||
this.node = node;
|
||||
node.setParent(null);
|
||||
node.setField(undefined, false);
|
||||
node.setField(this.getName(), false);
|
||||
delete node.index;
|
||||
|
||||
// append to the dom
|
||||
|
|
Loading…
Reference in New Issue