Skip to content

selectize.js:2151 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node' #175

@epchristi

Description

@epchristi

In selectize.js, in the function refreshOptions(), optgroup can be IPV6ADDRESS, and in line 2151:

html_children.appendChild(self.render('optgroup_header', self.optgroups[optgroup]));

This call fails with the Uncaught TypeError. 'optgroup_header' doesn't have a mapping in self.render.

This may or may not be a problem, but html[0] ends up being undefined in this case, which is what results in the error. I would add the code that causes it, but it's proprietary. I am hoping this gives enough information to reproduce it in a different way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions