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={() => {}}
|
||||
onSaveComment={() => {}}
|
||||
onSendBatch={onSendBatch}
|
||||
onRemove={() => {}}
|
||||
onRemoveMember={() => {}}
|
||||
sending={false}
|
||||
t={((key: string) => String(key)) as never}
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ describe('ChatComposer infinite re-render regression (#2097)', () => {
|
|||
renderComposer({
|
||||
draftStorageKey: key,
|
||||
onSend,
|
||||
enterToSend: false,
|
||||
});
|
||||
const textarea = screen.getByTestId('chat-composer-input') as HTMLTextAreaElement;
|
||||
fireEvent.change(textarea, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue