Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

Angular 8: Kendo Dropdown TypeError: Cannot read property 'appendChild' of undefined at PopupService.push,

$
0
0

I am getting this error when trying out the New Kendo Dropdown components, Does anyone know how to fix it? Or any clue where to start? I have the error debugging line below,

I tried solutions running this to reinstall and fix, does not work

npm i @progress/kendo-angular-popup
npm update
npn install @progress/kendo-angular-dropdowns

Receive this error context here,

<span #wrapper unselectable="on"
  role="listbox"
  [id]="focusableId"
  [ngClass]="{

DropDownListComponent.html:7 ERROR TypeError: Cannot read property 'appendChild' of undefined at PopupService.push../node_modules/@progress/kendo-angular-popup/dist/fesm5/index.js.PopupService.appendPopup (index.js:1200) at PopupService.push../node_modules/@progress/kendo-angular-popup/dist/fesm5/index.js.PopupService.open (index.js:1164) at DropDownListComponent.push../node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.createPopup (index.js:4313) at DropDownListComponent.push../node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent._toggle (index.js:4183) at DropDownListComponent.push../node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.togglePopup (index.js:4210) at DropDownListComponent.push../node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.click (index.js:4066) at Object.eval [as handleEvent] (DropDownListComponent.html:31) at handleEvent (core.js:29238) at callWithDebugContext (core.js:30308) at Object.debugHandleEvent [as handleEvent] (core.js:30035)

Appendix: We have a company Kendo dropdown wrapper:

Error in this line:

PopupService.prototype.appendPopup = function (nodes, container) {
    var popupComponentRef = this.createComponent(PopupComponent, nodes, container);
    if (!container) {
        this.rootViewContainerNode.appendChild(this.getComponentRootNode(popupComponentRef));
    }
    return popupComponentRef;

getComponentRootNode Function

PopupService.prototype.getComponentRootNode = function (componentRef) {
    return componentRef.hostView.rootNodes[0];
};

Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>