mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(snooze): Close popover when opening a new one
This commit is contained in:
parent
defbbbe3c7
commit
7f5c225d40
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/** @babel */
|
||||
import React, {Component, PropTypes} from 'react';
|
||||
import {Actions} from 'nylas-exports';
|
||||
import {Popover} from 'nylas-component-kit';
|
||||
import SnoozePopoverBody from './snooze-popover-body';
|
||||
|
||||
|
@ -29,7 +30,8 @@ class SnoozePopover extends Component {
|
|||
direction={direction || 'down-align-left'}
|
||||
buttonComponent={buttonComponent}
|
||||
popoverStyle={popoverStyle}
|
||||
pointerStyle={pointerStyle}>
|
||||
pointerStyle={pointerStyle}
|
||||
onOpened={()=> Actions.closePopover()}>
|
||||
<SnoozePopoverBody threads={threads} closePopover={this.closePopover}/>
|
||||
</Popover>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue