Allow Portal to be used as top-level modal (#4338)

* Portal

* Allow Portal to be used in as both top-level and popover

* modal/popover variable naming

* export Portal in ~/ui

* Properly handle optional onKeyDown

* Add simple Playground Example
This commit is contained in:
Jaco Greeff
2017-01-30 17:08:08 +01:00
committed by Gav Wood
parent 4e7b8652c8
commit 15ffd9a09c
7 changed files with 234 additions and 43 deletions

View File

@@ -176,6 +176,7 @@ class AddressSelect extends Component {
return (
<Portal
className={ styles.inputContainer }
isChildModal
onClose={ this.handleClose }
onKeyDown={ this.handleKeyDown }
open={ expanded }