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

Creator v2 fails with Cannot read properties of null (reading 'key') #6462

Closed
JaneSjs opened this issue Jan 28, 2025 · 1 comment · Fixed by surveyjs/survey-library#9372
Closed
Assignees
Labels

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jan 28, 2025

Try a survey from the Lazy Loading for Content-Heavy Forms demo.
To reproduce the issue, load the following demo:

test-project-react.zip

  • Collapse all elements by clicking Collapse All
  • Try to drag and drop Page 1 and drop it after Page 3. The following exception is thrown.
react-dom.production.min.js:79 Uncaught TypeError: Cannot read properties of null (reading 'key')
    at __webpack_modules__../src/element.tsx.SurveyRowElement.renderElement (element.tsx:78:32)
    at __webpack_modules__../src/reactquestion_element.tsx.SurveyElementBase.render (reactquestion_element.tsx:65:20)
    at Af (react-dom.production.min.js:133:101)
    at ri (react-dom.production.min.js:132:399)
    at Qk (react-dom.production.min.js:252:71)
    at Ri (react-dom.production.min.js:195:185)
    at Ok (react-dom.production.min.js:195:116)
    at Nd (react-dom.production.min.js:194:492)
    at Li (react-dom.production.min.js:189:179)
    at db (react-dom.production.min.js:79:182)
@JaneSjs JaneSjs changed the title Creator v2 with a large survey JSON Creator v2 with a large survey JSON fails with Cannot read properties of null (reading 'key') Jan 28, 2025
@JaneSjs JaneSjs added bug and removed usability labels Jan 28, 2025
@tsv2013 tsv2013 changed the title Creator v2 with a large survey JSON fails with Cannot read properties of null (reading 'key') Creator v2 fails with Cannot read properties of null (reading 'key') Jan 29, 2025
@tsv2013
Copy link
Member

tsv2013 commented Jan 29, 2025

This issue is not related to large JSON
The thing is that

ReactElementFactory.Instance.isElementRegistered('boolean')

returns false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants