Angular 8: Kendo Dropdown TypeError: Невозможно прочитать свойство 'appendChild' из неопределенного в PopupService.push, - PullRequest
0 голосов
/ 03 ноября 2019

Я получаю эту ошибку, когда пробую новые компоненты Kendo Dropdown. Кто-нибудь знает, как это исправить? Или есть подсказка, с чего начать? У меня есть строка отладки ошибок ниже,

Я пытался решения, использующие это, чтобы переустановить и исправить, не работает

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

Получить этот контекст ошибки здесь,

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

DropDownListComponent.html: 7 ОШИБКА TypeError: Невозможно прочитать свойство 'appendChild' из неопределенного в PopupService.push ../ node_modules/@progress/kendo-angular-popup/dist/fesm5/index.js.PopupService.appendPupup (index.js: 1200) в PopupService.push ../ node_modules/@progress/kendo-angular-popup/dist/fesm5/index.js.PopupService.open (index.js: 1164) в DropDownListComponent.push ../ node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.createPopup (index.js: 4313) в DropDownListComponent.push ../ node_modules / @ progress / kendo-angular-dropdowns / dist / fesm5 /index.js.DropDownListComponent._toggle (index.js: 4183) в DropDownListComponent.push ../ node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.togglePopup (index.js) 42: index.js:на DropDownListComponent.push ../ node_modules/@progress/kendo-angular-dropdowns/dist/fesm5/index.js.DropDownListComponent.click (index.js: 4066) в Object.eval [как handleEvent] (DropDownListComponent.html: 31)в handleEvent (core.js: 29238) в callWithDebugContext (core.js: 30308) в Object.debugHandleEvent [как handleEvent] (core.js: 30035)

Приложение: у нас есть выпадающий список компании Kendoобертка:

Ошибка в этой строке:

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

Функция getComponentRootNode

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