Browse Source

비밀번호 변경(enter키 기능 추가)

pull/2/head
sanguu(박상현) 2 years ago
parent
commit
e86484f495
  1. 9
      src/components/account/mypage/AccountMypagePwForm.js

9
src/components/account/mypage/AccountMypagePwForm.js

@ -53,7 +53,12 @@ const AccountMypagePwForm = ({ activeTab }) => {
const onChange = (e) => { const onChange = (e) => {
setuserPswd(e.target.value); setuserPswd(e.target.value);
//console.log(setuserPswd); };
const onKeyPress = e => {
if (e.key == 'Enter') {
pwok();
}
}; };
const onChanges = (e) => { const onChanges = (e) => {
const { value, name } = e.target; const { value, name } = e.target;
@ -102,7 +107,7 @@ const AccountMypagePwForm = ({ activeTab }) => {
<Col className='list-input' md='3' sm='12'> <Col className='list-input' md='3' sm='12'>
<FormGroup> <FormGroup>
<Label for='userPswd'>기존 비밀번호</Label> <Label for='userPswd'>기존 비밀번호</Label>
<Input type='password' readOnly={btnOk} id='userPswd' onChange={onChange} value={userPswd} name="userPswd" bsSize='sm' autoComplete='off' placeholder='' /> <Input type='password' readOnly={btnOk} onKeyPress={onKeyPress} id='userPswd' onChange={onChange} value={userPswd} name="userPswd" bsSize='sm' autoComplete='off' placeholder='' />
</FormGroup> </FormGroup>
</Col> </Col>
<div className='d-flex align-items-center'> <div className='d-flex align-items-center'>

Loading…
Cancel
Save