Fixed #544: JSON Schema errors sometimes not being displayed in the editor
This commit is contained in:
parent
cab3211e05
commit
fbf20b5031
|
@ -9,6 +9,8 @@ https://github.com/josdejong/jsoneditor
|
||||||
screen the modals are displayed.
|
screen the modals are displayed.
|
||||||
- Integrated JMESPath for advanced filtering, sorting, and transforming
|
- Integrated JMESPath for advanced filtering, sorting, and transforming
|
||||||
of JSON documents.
|
of JSON documents.
|
||||||
|
- Fixed #544: JSON Schema errors sometimes not being displayed in the
|
||||||
|
editor.
|
||||||
|
|
||||||
|
|
||||||
## 2018-06-03, version 5.17.1
|
## 2018-06-03, version 5.17.1
|
||||||
|
|
|
@ -219,7 +219,7 @@ Node.prototype.setError = function (error, child) {
|
||||||
Node.prototype.updateError = function() {
|
Node.prototype.updateError = function() {
|
||||||
var error = this.error;
|
var error = this.error;
|
||||||
var tdError = this.dom.tdError;
|
var tdError = this.dom.tdError;
|
||||||
if (error && this.dom && this.dom.tr && !tdError) {
|
if (error && this.dom && this.dom.tr) {
|
||||||
if (!tdError) {
|
if (!tdError) {
|
||||||
tdError = document.createElement('td');
|
tdError = document.createElement('td');
|
||||||
this.dom.tdError = tdError;
|
this.dom.tdError = tdError;
|
||||||
|
|
Loading…
Reference in New Issue