mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +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 */
|
/** @babel */
|
||||||
import React, {Component, PropTypes} from 'react';
|
import React, {Component, PropTypes} from 'react';
|
||||||
|
import {Actions} from 'nylas-exports';
|
||||||
import {Popover} from 'nylas-component-kit';
|
import {Popover} from 'nylas-component-kit';
|
||||||
import SnoozePopoverBody from './snooze-popover-body';
|
import SnoozePopoverBody from './snooze-popover-body';
|
||||||
|
|
||||||
|
@ -29,7 +30,8 @@ class SnoozePopover extends Component {
|
||||||
direction={direction || 'down-align-left'}
|
direction={direction || 'down-align-left'}
|
||||||
buttonComponent={buttonComponent}
|
buttonComponent={buttonComponent}
|
||||||
popoverStyle={popoverStyle}
|
popoverStyle={popoverStyle}
|
||||||
pointerStyle={pointerStyle}>
|
pointerStyle={pointerStyle}
|
||||||
|
onOpened={()=> Actions.closePopover()}>
|
||||||
<SnoozePopoverBody threads={threads} closePopover={this.closePopover}/>
|
<SnoozePopoverBody threads={threads} closePopover={this.closePopover}/>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue