Keep emoji picker within screen bounds
Adds the `flip` prop to `<Overlay>`. Fixes #40
This commit is contained in:
parent
98eab315c1
commit
b78ea8b4a3
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