Skip to content

Parser-input-select.js error #1554

Closed
Closed
@lindonb

Description

@lindonb

After this commit the following error occurs for me at line 148 of parser-input-select.js:

TypeError: $el[0] is undefined

It seems that the updateCheckbox function is run twice and the error happens the second time. Changing line 148 to check for undefined fixes the issue for me:
Replace:
if ($el[0].nodeName !== 'INPUT') {
With this:
if (typeof $el[0] !== 'undefined' && $el[0].nodeName !== 'INPUT') {
Not sure if this is the best fix or there is another root problem.
Thanks,
lindonb

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions