-
Notifications
You must be signed in to change notification settings - Fork 191
Fixes for Editor switching to next field on pressing Enter #2457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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 heresssss..." | ||
id="body" | ||
bind:value={body} /> | ||
</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 , There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. ![]() Any suggestions?? |
||
</Layout.Stack> | ||
</Accordion> | ||
</Layout.Stack> | ||
|
Uh oh!
There was an error while loading. Please reload this page.