mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
fix(web): address review feedback — drop unknown prop and pin legacy enterToSend in test
This commit is contained in:
parent
28b53e191b
commit
eddf467df6
2 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -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, {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue