반응형
✔️ 에러 코드
Input elements should have autocomplete attributes (suggested: "current-password")
✔️ 에러가 나온 이유
input type password의 경우에는 자동 완성 속성이 있어야한다!
✔️ 에러 해결 방법
autoComplete 속성을 추가해주었다. 여기서는 자동 완성 기능 off로 설정함.
👇에러코드 👇
<form>
<input id='pwd' type='password' maxLength='8'></input>
</form>
👇에러 수정 코드 👇
<form>
<input id='pwd' type='password' maxLength='8' autoComplete='off'></input>
</form>
참고)
https://icecokel.tistory.com/13
쉽게 놓치고 지나갈 수 있는 실수 정리 : HTML (1)
안녕하세요. 저희 회사에서는 개발하면서 Warning과 Error관해 깐깐한 편인데요. 이전 회사와, 공부할 때는 원하는 기능만 되면, 개발이 완료되었다고 생각했었는데, Warning까지 다 잡아가면서 개발
icecokel.tistory.com
😃 잘못된 개념 전달이 있다면 댓글 부탁드립니다. 저의 성장에 큰 도움이 됩니다🤓
반응형
'❗️Error > 오류를 해결하자!' 카테고리의 다른 글
구글 소셜 로그인 프론트단에서 토큰까지 발급 받기 (OAuth2.0) (0) | 2022.10.11 |
---|---|
구글 소셜 로그인 오류 해결하기, invalid_request, 400오류, redirect_uri_mismatch (0) | 2022.09.22 |
Password field is not contained in a form (0) | 2022.08.26 |
data.map is not a function (0) | 2022.08.18 |
Can't perform a React state update on a component that hasn't mounted yet. 에러 해결하기 (0) | 2022.08.18 |