Skip to content

Cannot read property 'insertBefore' of null #30

Description

@Praveen-Danagoudra

We are getting many issues at this method.
JS console throwing - Cannot read property 'insertBefore' of null at this method.

can you please handle this error?

/**
* Inserts base element before refEl.
* @param {Node} refEl - node before which base element will be inserted
* @returns {Node} - inserted element
*/
insertBefore: function(refEl) {
return refEl.parentNode.insertBefore(el, refEl);
},

Regards,
Praveen Danagoudra

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