mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix findDOMNode
This commit is contained in:
@@ -254,6 +254,8 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
||||
closeModal();
|
||||
};
|
||||
|
||||
const nodeRef = React.useRef(null);
|
||||
|
||||
return (
|
||||
<StyledModal
|
||||
isOpen={isOpen}
|
||||
@@ -263,8 +265,8 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
||||
shouldCloseOnOverlayClick={false}
|
||||
selectedStyle={selectedStyle}
|
||||
overlayClassName="hide-modal-overlay">
|
||||
<Draggable handle=".modal-header">
|
||||
<div className="modal-content">
|
||||
<Draggable handle=".modal-header" nodeRef={nodeRef}>
|
||||
<div className="modal-content" ref={nodeRef}>
|
||||
<div className="modal-header">
|
||||
Reply to Thread
|
||||
<button className="icon" onClick={handleCloseModal} title="close" />
|
||||
|
||||
Reference in New Issue
Block a user