diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index 89146acd..8b5a15ed 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -31,7 +31,7 @@ class MarkdownNoteDetail extends React.Component { } this.dispatchTimer = null - this.showLockButton = () => this.handleShowLockButton() + this.showLockButton = this.handleShowLockButton.bind(this) } focus () { @@ -218,7 +218,7 @@ class MarkdownNoteDetail extends React.Component { this.setState({ isLocked: !this.state.isLocked }) } - toggleLockButton () { + getToggleLockButton () { return this.state.isLocked ? 'fa-lock' : 'fa-unlock-alt' } @@ -266,17 +266,17 @@ class MarkdownNoteDetail extends React.Component {