Skip to content

Commit

Permalink
fix(content): fix close panel when pinned
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Apr 28, 2018
1 parent 1e74644 commit 4771637
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/content/components/MenuBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@ export class MenuBar extends React.PureComponent<MenuBarProps & { t: Translation
/** close panel, even when pinned */
handleIconCloseClick = (e: React.MouseEvent<HTMLButtonElement>) => {
e.currentTarget.blur()
const { closePanel, isPinned, panelPinSwitch } = this.props
closePanel()
// remove pin
if (isPinned) { panelPinSwitch() }
this.props.closePanel()
}

componentDidMount () {
Expand Down

0 comments on commit 4771637

Please sign in to comment.