1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00
This commit is contained in:
asmsuechan
2017-07-08 14:02:03 +09:00
parent 21f96febdb
commit f005bb1e46
3 changed files with 7 additions and 4 deletions

View File

@@ -234,7 +234,7 @@ class MarkdownNoteDetail extends React.Component {
handleInfoButtonClick (e) {
const infoPanel = document.querySelector('.infoPanel')
infoPanel.style.display = display === 'none' ? 'inline' : 'none'
if (infoPanel.style) infoPanel.style.display = infoPanel.style.display === 'none' ? 'inline' : 'none'
}
render () {
@@ -309,7 +309,7 @@ class MarkdownNoteDetail extends React.Component {
<i className='fa fa-arrows-alt' styleName='fullScreen-button' />
</button>
<InfoButton
onClick={this.handleInfoButtonClick()}
onClick={(e) => this.handleInfoButtonClick(e)}
/>
<InfoPanel
storageName={currentOption.storage.name}