Keep emoji picker within screen bounds
Adds the `flip` prop to `<Overlay>`. Fixes #40
This commit is contained in:
parent
f577764472
commit
55303adfef
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ class EmojiPickerDropdown extends React.PureComponent {
|
|||
/>}
|
||||
</div>
|
||||
|
||||
<Overlay show={active} placement={'bottom'} target={this.findTarget} popperConfig={{ strategy: 'fixed' }}>
|
||||
<Overlay show={active} placement={'bottom'} flip target={this.findTarget} popperConfig={{ strategy: 'fixed' }}>
|
||||
{({ props, placement })=> (
|
||||
<div {...props} style={{ ...props.style, width: 299 }}>
|
||||
<div className={`dropdown-animation ${placement}`}>
|
||||
|
|
Loading…
Reference in a new issue