1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Use the correct handler for closing the modal.

Relates to #967
This commit is contained in:
Samatar26
2017-10-12 18:01:34 +01:00
parent fc6a5c22bf
commit 9331f2034b

View File

@@ -194,13 +194,13 @@ class InitModal extends React.Component {
return (
<div styleName='root'
tabIndex='-1'
onKeyDown={(e) => this.handleKeyDown(e)}
onKeyDown={this.props.close}
>
<div styleName='header'>
<div styleName='header-title'>Initialize Storage</div>
</div>
<ModalEscButton handleEscButtonClick={(e) => this.handleCloseButtonClick(e)} />
<ModalEscButton handleEscButtonClick={this.props.close} />
<div styleName='body'>
<div styleName='body-welcome'>
Welcome!