Merge pull request #17 from benfeely/next
Fix rendering of some elements not working in IE11
This commit is contained in:
Коммит
832196b58f
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "../../node_modules/ng-packagr/package.schema.json",
|
||||
"name": "@angular-react/core",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"ngPackage": {
|
||||
"deleteDestPath": true,
|
||||
"whitelistedNonPeerDependencies": [
|
||||
|
|
|
@ -60,7 +60,7 @@ export class AngularReactRendererFactory extends ɵDomRendererFactory2 {
|
|||
const node = this.reactRootNodes[i];
|
||||
if (
|
||||
!isReactNode(node.parent) &&
|
||||
!document.contains(node.parent) &&
|
||||
!document.body.contains(node.parent) &&
|
||||
ReactDOM.unmountComponentAtNode(node.parent)
|
||||
) {
|
||||
this.reactRootNodes.splice(i--, 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче