fix(web): address review feedback — drop unknown prop and pin legacy enterToSend in test

This commit is contained in:
nicejames 2026-05-29 21:57:20 +09:00
parent 28b53e191b
commit eddf467df6
2 changed files with 1 additions and 1 deletions

View file

@ -41,7 +41,6 @@ function renderPopover(onSendBatch: () => void) {
onClose={() => {}} onClose={() => {}}
onSaveComment={() => {}} onSaveComment={() => {}}
onSendBatch={onSendBatch} onSendBatch={onSendBatch}
onRemove={() => {}}
onRemoveMember={() => {}} onRemoveMember={() => {}}
sending={false} sending={false}
t={((key: string) => String(key)) as never} t={((key: string) => String(key)) as never}

View file

@ -97,6 +97,7 @@ describe('ChatComposer infinite re-render regression (#2097)', () => {
renderComposer({ renderComposer({
draftStorageKey: key, draftStorageKey: key,
onSend, onSend,
enterToSend: false,
}); });
const textarea = screen.getByTestId('chat-composer-input') as HTMLTextAreaElement; const textarea = screen.getByTestId('chat-composer-input') as HTMLTextAreaElement;
fireEvent.change(textarea, { fireEvent.change(textarea, {