Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a property breaks UI with a couple of exceptions in the console #1562

Open
KemalSoysal opened this issue May 11, 2024 · 0 comments
Open

Comments

@KemalSoysal
Copy link

KemalSoysal commented May 11, 2024

General information

I migrated our json-editor usage from 0.7.28 to newest working for our usage.

  • json-editor versions: 2.7.0 - 2.15.0 show this and other issues
  • last working release for us: 2.6.1

It was possible to reduce the schema and example to be show cased on the json-editor test drive.

Expected behavior

  1. When opening the page no errors occur
  2. When adding a property to the object no errors occur.

Actual behavior

  1. Following error occurs:
[Log] caught error: (ajv-validator.js, line 8671)
TypeError: undefined is not an object (evaluating 'formats0.validate.test')
validate24
validate21
validate22
validate21
validate22
validate21
validate20
validate — ajv-validator.js:31
validateSchema — json-editor:317
refreshUI — json-editor:364
mergeOptions — json-editor:355
parseUrl — json-editor:348
Globaler Code — json-editor:642
  1. Following errors occur
  • 1 x
[Error] TypeError: undefined is not an object (evaluating 't.optInCheckbox.disabled=!1')
	(anonyme Funktion) (jsoneditor.min.js:8:259666)
	forEach
	value (jsoneditor.min.js:8:259598)
	(anonyme Funktion) (jsoneditor.min.js:8:259648)
	forEach
	value (jsoneditor.min.js:8:259598)
	value (jsoneditor.min.js:8:279662)
	value (jsoneditor.min.js:8:279775)
	value (jsoneditor.min.js:8:281795)
	dispatchEvent
	c (jsoneditor.min.js:8:73514)
	value (jsoneditor.min.js:8:274950)
	(anonyme Funktion) (jsoneditor.min.js:8:274258)
	forEach
	value (jsoneditor.min.js:8:273541)
	value (jsoneditor.min.js:8:281364)
	(anonyme Funktion) (jsoneditor.min.js:8:271491)
  • 3 x
[Error] TypeError: undefined is not an object (evaluating 't.optInCheckbox.disabled=!1')
	(anonyme Funktion) (jsoneditor.min.js:8:259666)
	forEach
	value (jsoneditor.min.js:8:259598)
	(anonyme Funktion) (jsoneditor.min.js:8:259648)
	forEach
	value (jsoneditor.min.js:8:259598)
	(anonyme Funktion) (jsoneditor.min.js:8:259648)
	forEach
	value (jsoneditor.min.js:8:259598)
	value (jsoneditor.min.js:8:279662)
	value (jsoneditor.min.js:8:279775)
	value (jsoneditor.min.js:8:281795)
	dispatchEvent
	c (jsoneditor.min.js:8:73514)
	value (jsoneditor.min.js:8:274950)
	value (jsoneditor.min.js:8:281364)
	(anonyme Funktion) (jsoneditor.min.js:8:286519)
	forEach
	value (jsoneditor.min.js:8:286436)
	value (jsoneditor.min.js:8:80783)
	(anonyme Funktion) (jsoneditor.min.js:8:274272)
	forEach
	value (jsoneditor.min.js:8:273541)
	value (jsoneditor.min.js:8:281364)
	(anonyme Funktion) (jsoneditor.min.js:8:271491)
  • 1 x
[Error] TypeError: undefined is not an object (evaluating 't.optInCheckbox.disabled=!1')
	(anonyme Funktion) (jsoneditor.min.js:8:259666)
	forEach
	value (jsoneditor.min.js:8:259598)
	value (jsoneditor.min.js:8:279662)
	value (jsoneditor.min.js:8:279775)
	value (jsoneditor.min.js:8:281795)
	dispatchEvent
	c (jsoneditor.min.js:8:73514)
	value (jsoneditor.min.js:8:274950)
	value (jsoneditor.min.js:8:281364)
	(anonyme Funktion) (jsoneditor.min.js:8:271491)
  • and the UI is in read only mode and is expanded

Steps to reproduce the behavior

  1. Follow the direct link to the json-editor.github.io containing the schema

  2. load the model or type in a model name:

{
    "model": {
    "name": "aModel",
    "entities": {}
    }
}
  1. add a property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant