물건상세 설계의뢰팝업 엔터검색 추가
This commit is contained in:
parent
9a387f5418
commit
d273e1d5c3
@ -257,6 +257,16 @@ export default function PlanRequestPop(props) {
|
|||||||
const handleKeyUp = (e) => {
|
const handleKeyUp = (e) => {
|
||||||
let input = e.target
|
let input = e.target
|
||||||
input.value = input.value.replace(/[^0-9]/g, '')
|
input.value = input.value.replace(/[^0-9]/g, '')
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
onSubmit(pageNo, 'S')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 엔터 이벤트
|
||||||
|
const handleByOnKeyUp = (e) => {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
onSubmit(pageNo, 'S')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -324,6 +334,7 @@ export default function PlanRequestPop(props) {
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setSchTitle(e.target.value)
|
setSchTitle(e.target.value)
|
||||||
}}
|
}}
|
||||||
|
onKeyUp={handleByOnKeyUp}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -337,6 +348,7 @@ export default function PlanRequestPop(props) {
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setSchAddress(e.target.value)
|
setSchAddress(e.target.value)
|
||||||
}}
|
}}
|
||||||
|
onKeyUp={handleByOnKeyUp}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -352,6 +364,7 @@ export default function PlanRequestPop(props) {
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setSchSaleStoreName(e.target.value)
|
setSchSaleStoreName(e.target.value)
|
||||||
}}
|
}}
|
||||||
|
onKeyUp={handleByOnKeyUp}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -365,6 +378,7 @@ export default function PlanRequestPop(props) {
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setSchPlanReqName(e.target.value)
|
setSchPlanReqName(e.target.value)
|
||||||
}}
|
}}
|
||||||
|
onKeyUp={handleByOnKeyUp}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -440,7 +454,7 @@ export default function PlanRequestPop(props) {
|
|||||||
<div className="design-request-count">
|
<div className="design-request-count">
|
||||||
<div className="design-request-grid-tit">Plan List</div>
|
<div className="design-request-grid-tit">Plan List</div>
|
||||||
<div className="select-wrap">
|
<div className="select-wrap">
|
||||||
<select className="select-light" name="" id="" onChange={onChangePerPage}>
|
<select className="select-light" onChange={onChangePerPage}>
|
||||||
<option>20</option>
|
<option>20</option>
|
||||||
<option>40</option>
|
<option>40</option>
|
||||||
<option>60</option>
|
<option>60</option>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user