fix(react): ensure inline modal content is visible (#23968)

This commit is contained in:
Amanda Smith
2021-09-23 14:05:21 -05:00
committed by GitHub
parent ed455ab4c6
commit 285a371101

View File

@ -119,7 +119,14 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
* so conditionally render the component
* based on the isOpen state.
*/
return React.createElement(tagName, newProps, (this.state.isOpen) ? React.createElement('div', { id: 'ion-react-wrapper', ref: this.wrapperRef }, children) : null);
return React.createElement(tagName, newProps, (this.state.isOpen) ?
React.createElement('div', {
id: 'ion-react-wrapper',
ref: this.wrapperRef,
style: { height: '100%' }
}, children) :
null
);
}
static get displayName() {