fix(react): handle undefined attributes better, fixes #19563, #19580 (#19588)

This commit is contained in:
Ely Lucas
2019-10-09 10:36:25 -06:00
committed by GitHub
parent 7ce916cc7c
commit 033abe994b
10 changed files with 22 additions and 37 deletions

View File

@ -2,7 +2,7 @@ import { OverlayEventDetail } from '@ionic/core';
import React from 'react';
import ReactDOM from 'react-dom';
import { attachEventProps } from './utils';
import { attachProps } from './utils';
interface OverlayElement extends HTMLElement {
present: () => Promise<void>;
@ -68,7 +68,7 @@ export const createOverlayComponent = <T extends object, OverlayType extends Ove
componentProps: {}
});
attachEventProps(overlay, elementProps, prevProps);
attachProps(overlay, elementProps, prevProps);
await overlay.present();
}