Merge branch 'wells-bus-1965-update-frontend-to-use-password-for-public-access-when-it-is' of https://github.com/buster-so/buster into wells-bus-1965-update-frontend-to-use-password-for-public-access-when-it-is

This commit is contained in:
Wells Bunker 2025-09-26 13:23:53 -06:00
commit bfcb30311a
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
1 changed files with 27 additions and 2 deletions

View File

@ -48,7 +48,11 @@ export const InputTextArea = React.forwardRef<InputTextAreaRef, InputTextAreaPro
) => {
const textareaRef = useRef<HTMLTextAreaElement | null>(null);
useImperativeHandle(ref, () => {
<<<<<<< HEAD
useImperativeHandle(
ref,
() =>
{
if (!textareaRef.current) {
return null as unknown as InputTextAreaRef;
}
@ -61,7 +65,28 @@ export const InputTextArea = React.forwardRef<InputTextAreaRef, InputTextAreaPro
}
},
});
}, []);
}
,
[]
)
=======
useImperativeHandle(ref, () =>
{
if (!textareaRef.current) {
return null as unknown as InputTextAreaRef;
}
return Object.assign(textareaRef.current, {
forceRecalculateHeight: () => {
if (textareaRef.current) {
// Force a recalculation by triggering an input event
const event = new Event('input', { bubbles: true });
textareaRef.current.dispatchEvent(event);
}
},
});
}
, [])
>>>>>>> staging
const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === 'Enter') {