숫자입력필드 한글입력하고 포커스 아웃시 처리
This commit is contained in:
parent
b0a4ca8cc1
commit
bf00ba46fc
@ -262,6 +262,11 @@ export default function PlanRequestPop(props) {
|
||||
}
|
||||
}
|
||||
|
||||
const handleBlur = (e) => {
|
||||
let input = e.target
|
||||
input.value = input.value.replace(/[^0-9]/g, '')
|
||||
}
|
||||
|
||||
// 엔터 이벤트
|
||||
const handleByOnKeyUp = (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
@ -318,6 +323,7 @@ export default function PlanRequestPop(props) {
|
||||
className="input-light"
|
||||
value={schPlanReqNo}
|
||||
onKeyUp={handleKeyUp}
|
||||
onBlur={handleBlur}
|
||||
onChange={(e) => {
|
||||
setSchPlanReqNo(e.target.value)
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user