-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Loading Error: 'TypeError: Cannot set property 'textContent' of null' #2078
Comments
Congrats on your first bug report @mdestaubin 🙌 🕺 |
@jnm do you think this can have something to do with Martijn removing jQuery from Enketo? I remember he mentioned he had bugs because jQuery handles not found nodes behind the scenes. |
@magicznyleszek, maybe. I tried this In any event, this bug needs to be filed against Enketo Express: https://github.com/enketo/enketo-express/issues |
With the handy-dandy browser developer tools, I was able to figure out that things were getting hung up around this part of the form:
A minimal form to reproduce the problem needs only:
@magicznyleszek, I'll ask you to try your hand at this kind of troubleshooting in the future. @tinok, is there a valid reason for someone to have a repeating group filled only with |
If my understanding of kobotoolbox/enketo-express#1112 is correct, this should be fixed by rejecting forms with empty repeating groups as invalid. I mentioned this particular manifestation of the issue to Martijn at enketo/enketo-validate#38. |
Description
The users forms were reportedly working properly until Nov 5th, when some of their forms began showing the loading error: 'TypeError: Cannot set property 'textContent' of null'
Steps to Reproduce
Expected behavior
The form should open or be previewed properly with no loading errors.
Actual behavior
Loading Error: 'TypeError: Cannot set property 'textContent' of null' pops up.
Additional details
The text was updated successfully, but these errors were encountered: