@ionic/react
Advanced tools
Comparing version 4.12.0-dev.201910281628.f70e71a to 4.12.0-dev.201910301839.70fefb5
@@ -408,13 +408,7 @@ import React, { useContext } from 'react'; | ||
const _a = this.props, { isOpen, onDidDismiss } = _a, cProps = __rest(_a, ["isOpen", "onDidDismiss"]); | ||
let overlay = this.overlay; | ||
if (!overlay) { | ||
overlay = this.overlay = await controller.create(Object.assign({}, cProps)); | ||
} | ||
const overlay = this.overlay = await controller.create(Object.assign({}, cProps)); | ||
attachProps(overlay, { | ||
[dismissEventName]: onDidDismiss | ||
}, prevProps); | ||
// Check isOpen again since the value could of changed during the async call to controller.create | ||
if (this.props.isOpen === true) { | ||
await overlay.present(); | ||
} | ||
await overlay.present(); | ||
} | ||
@@ -421,0 +415,0 @@ render() { |
@@ -414,13 +414,7 @@ 'use strict'; | ||
const _a = this.props, { isOpen, onDidDismiss } = _a, cProps = tslib_1.__rest(_a, ["isOpen", "onDidDismiss"]); | ||
let overlay = this.overlay; | ||
if (!overlay) { | ||
overlay = this.overlay = await controller.create(Object.assign({}, cProps)); | ||
} | ||
const overlay = this.overlay = await controller.create(Object.assign({}, cProps)); | ||
attachProps(overlay, { | ||
[dismissEventName]: onDidDismiss | ||
}, prevProps); | ||
// Check isOpen again since the value could of changed during the async call to controller.create | ||
if (this.props.isOpen === true) { | ||
await overlay.present(); | ||
} | ||
await overlay.present(); | ||
} | ||
@@ -427,0 +421,0 @@ render() { |
{ | ||
"name": "@ionic/react", | ||
"version": "4.12.0-dev.201910281628.f70e71a", | ||
"version": "4.12.0-dev.201910301839.70fefb5", | ||
"description": "React specific wrapper for @ionic/core", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ionic/core": "4.12.0-dev.201910281628.f70e71a", | ||
"@ionic/core": "4.12.0-dev.201910301839.70fefb5", | ||
"tslib": "*" | ||
@@ -45,0 +45,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
688677
5310
+ Added@ionic/core@4.12.0-dev.201910301839.70fefb5(transitive)
- Removed@ionic/core@4.12.0-dev.201910281628.f70e71a(transitive)