Composer: Use a state instead of a signal (#3175)
This commit is contained in:
parent
cd078bcd33
commit
3f07fe2543
@ -319,7 +319,7 @@ const Composer: FC<OwnProps & StateProps> = ({
|
|||||||
const inputRef = useRef<HTMLDivElement>(null);
|
const inputRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
const [getHtml, setHtml] = useSignal('');
|
const [getHtml, setHtml] = useSignal('');
|
||||||
const [getIsMounted, setIsMounted] = useSignal(false);
|
const [isMounted, setIsMounted] = useState(false);
|
||||||
const getSelectionRange = useGetSelectionRange(EDITABLE_INPUT_CSS_SELECTOR);
|
const getSelectionRange = useGetSelectionRange(EDITABLE_INPUT_CSS_SELECTOR);
|
||||||
const lastMessageSendTimeSeconds = useRef<number>();
|
const lastMessageSendTimeSeconds = useRef<number>();
|
||||||
const prevDropAreaState = usePrevious(dropAreaState);
|
const prevDropAreaState = usePrevious(dropAreaState);
|
||||||
@ -1219,7 +1219,7 @@ const Composer: FC<OwnProps & StateProps> = ({
|
|||||||
'Composer',
|
'Composer',
|
||||||
!isSelectModeActive && 'shown',
|
!isSelectModeActive && 'shown',
|
||||||
isHoverDisabled && 'hover-disabled',
|
isHoverDisabled && 'hover-disabled',
|
||||||
getIsMounted() && 'mounted',
|
isMounted && 'mounted',
|
||||||
);
|
);
|
||||||
|
|
||||||
const handleSendScheduled = useCallback(() => {
|
const handleSendScheduled = useCallback(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user