From a785de293055fd4dc235dc5d6c94f48582f1a09b Mon Sep 17 00:00:00 2001 From: tdakanalis Date: Mon, 11 Apr 2016 09:56:16 +0300 Subject: [PATCH] -Fixed some accidentally removed logic. --- src/js/Node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/Node.js b/src/js/Node.js index 25b3c7e..a3e3c27 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -1262,6 +1262,7 @@ Node.prototype._updateDomValue = function () { } //If the node has an enum property and it is editable lets create the select element else if (this.enum && this.editable.value) { + debugger; if (!this.dom.select) { this.dom.select = document.createElement('select'); this.id = this.field + "_" + new Date().getUTCMilliseconds(); @@ -1940,8 +1941,10 @@ Node.prototype.updateDom = function (options) { //Search for any enumeration type in the schema of the current node. //Enum types can be also be part of a composite type. if(this.schema){ + debugger; if(this.schema.hasOwnProperty('enum')){ - this.enum = this.schema.enum; + this.enum = new Object(); + this.enum.enum = this.schema.enum; } else if(this.schema.hasOwnProperty('oneOf')){ this.enum = this._getJsonObject(this.schema.oneOf, 'enum')[0]; } else if(this.schema.hasOwnProperty('anyOf')){