@sevenfold/setto-client 0.24.1 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/setto-client.js +1 -3
- package/dist/setto-client.js.map +1 -1
- package/package.json +1 -1
package/dist/setto-client.js
CHANGED
|
@@ -22149,7 +22149,6 @@ function SiteChatComposer({
|
|
|
22149
22149
|
}) {
|
|
22150
22150
|
const textareaRef = useRef(null);
|
|
22151
22151
|
const fileRef = useRef(null);
|
|
22152
|
-
const wasBusy = useRef(busy);
|
|
22153
22152
|
const [focused, setFocused] = useState(false);
|
|
22154
22153
|
useEffect(() => {
|
|
22155
22154
|
const textarea = textareaRef.current;
|
|
@@ -22162,8 +22161,7 @@ function SiteChatComposer({
|
|
|
22162
22161
|
textarea.style.height = `${height}px`;
|
|
22163
22162
|
}, [value]);
|
|
22164
22163
|
useEffect(() => {
|
|
22165
|
-
if (
|
|
22166
|
-
wasBusy.current = busy;
|
|
22164
|
+
if (!busy) textareaRef.current?.focus();
|
|
22167
22165
|
}, [busy]);
|
|
22168
22166
|
function send() {
|
|
22169
22167
|
if (!value.trim() && attachments.length === 0) return;
|