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
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