StatusReactionWrapper: put the picker in a portal
This commit is contained in:
parent
06ea520e89
commit
6f15b5f42f
|
@ -1,3 +1,4 @@
|
||||||
|
import { Portal } from '@reach/portal';
|
||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
|
|
||||||
import { simpleEmojiReact } from 'soapbox/actions/emoji-reacts';
|
import { simpleEmojiReact } from 'soapbox/actions/emoji-reacts';
|
||||||
|
@ -105,12 +106,14 @@ const StatusReactionWrapper: React.FC<IStatusReactionWrapper> = ({ statusId, chi
|
||||||
ref: setReferenceElement,
|
ref: setReferenceElement,
|
||||||
})}
|
})}
|
||||||
|
|
||||||
<EmojiSelector
|
<Portal>
|
||||||
placement='top-start'
|
<EmojiSelector
|
||||||
referenceElement={referenceElement}
|
placement='top-start'
|
||||||
onReact={handleReact}
|
referenceElement={referenceElement}
|
||||||
visible={visible}
|
onReact={handleReact}
|
||||||
/>
|
visible={visible}
|
||||||
|
/>
|
||||||
|
</Portal>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue