Skip to content

Commit

Permalink
๐Ÿ”ง fix: ๋งค์ˆ˜/๋งค๋„ ์š”์ฒญ enterํ‚ค๋กœ ํ•˜์ง€ ๋ชปํ•˜๋„๋ก ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 5, 2024
1 parent 1dd010c commit fb1b4bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion FE/src/components/StocksDetail/TradeSection/BuySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,15 @@ export default function BuySection({ code, detailInfo }: BuySectionProps) {

return (
<>
<form className='flex flex-col' onSubmit={handleBuy}>
<form
className='flex flex-col'
onSubmit={handleBuy}
onKeyDown={(e) => {
if (e.key === 'Enter') {
e.preventDefault();
}
}}
>
<div className='my-4'>
<div className='flex items-center justify-between h-12'>
<p className='mr-3 w-14'>๋งค์ˆ˜ ๊ฐ€๊ฒฉ</p>
Expand Down
10 changes: 9 additions & 1 deletion FE/src/components/StocksDetail/TradeSection/SellSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@ export default function SellSection({ code, detailInfo }: SellSectionProps) {

return (
<>
<form className='flex flex-col' onSubmit={handleSell}>
<form
className='flex flex-col'
onSubmit={handleSell}
onKeyDown={(e) => {
if (e.key === 'Enter') {
e.preventDefault();
}
}}
>
<div className='my-4'>
<div className='flex items-center justify-between h-12'>
<p className='mr-3 w-14'>๋งค๋„ ๊ฐ€๊ฒฉ</p>
Expand Down

0 comments on commit fb1b4bd

Please sign in to comment.