Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,19 @@
Provide the request body to include the main data you want to send
to the server.
</Typography.Text>
<InputTextarea
placeholder="Enter request body here..."
id="body"
bind:value={body} />
<div
role="textbox"
tabindex="-1"
on:keyup={(e) => {
if (e.key === 'Enter') {
e.stopPropagation();
}
}}>
<InputTextarea
placeholder="Enter request body here..."
id="body"
bind:value={body} />
</div>
</Layout.Stack>
</Accordion>
</Fieldset>
Expand Down Expand Up @@ -289,10 +298,19 @@
Provide the request body to include the main data you want
to send to the server.
</Typography.Text>
<InputTextarea
placeholder="Enter request body here..."
id="body"
bind:value={body} />
<div
role="textbox"
tabindex="-1"
on:keyup={(e) => {
if (e.key === 'Enter') {
e.stopPropagation();
}
}}>
<InputTextarea
placeholder="Enter request body here..."
id="body"
bind:value={body} />
</div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add native key event support to Input.Textarea in appwrite/pink instead of wrapping it in a div ,
This would eliminate the need for wrapper divs 👍

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HarshMN2345 , Agree with the suggested change. I tried implementing that but was not able to make it work by passing the event inside textarea.

image

Any suggestions??
Currently trying by creating a CustomEvent and passing that inside Input.TextArea.

</Layout.Stack>
</Accordion>
</Layout.Stack>
Expand Down