Skip to content

Commit

Permalink
fix: revert enter key submit logic for new request form (usebruno#3114)
Browse files Browse the repository at this point in the history
  • Loading branch information
lohxt1 authored Sep 17, 2024
1 parent 3cb3f80 commit 260996a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/bruno-app/src/components/Sidebar/NewRequest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,7 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
return (
<StyledWrapper>
<Modal size="md" title="New Request" confirmText="Create" handleConfirm={onSubmit} handleCancel={onClose}>
<form
className="bruno-form"
onSubmit={formik.handleSubmit}
onKeyDown={(e) => {
if (e.key === 'Enter') {
e.preventDefault();
formik.handleSubmit();
}
}}
>
<form className="bruno-form" onSubmit={formik.handleSubmit}>
<div>
<label htmlFor="requestName" className="block font-semibold">
Type
Expand Down

0 comments on commit 260996a

Please sign in to comment.