I am using portal inside a component of the sidebar. When I try to close the sidebar, it throws this error Cannot read property 'removeChild' of null. After checking source code from this error message I found this:
destroyed: function destroyed() {
var el = this.$el;
el && el.parentNode.removeChild(el);
}
I am using portal inside a component of the sidebar. When I try to close the sidebar, it throws this error
Cannot read property 'removeChild' of null
. After checking source code from this error message I found this:What's am I doing wrong?