✔️ 에러 코드
Password field is not contained in a form
✔️ 에러가 나온 이유
password는 form에 감싸져 있지 않다고 오류가 떴다!
✔️ 에러 해결 방법
input 태그를 <form> </form> 으로 묶어주었다.
👇에러코드 👇
<div className='btn'>
<input type='email'></input>
<input type='password'></input>
<Button text={"Log in"}></Button>
</div>
👇에러 수정 코드 👇
<form>
<input id='userEmail' type='email'></input>
<input id='pwd' type='password' maxLength='8'></input>
<Button text={"Log in"}></Button>
</form>
참고)
https://webfirewood.tistory.com/75
[DOM] Password field is not contained in a form
서비스 중인 웹에서 다음과 같은 경고 메세지가 나타나는 것을 발견했다. password 타입의 input 태그가 form 태그 안에 위치하지 않기 때문에 나타나는 경고다. 고치지 않아도 별로 문제는 없지만 일
webfirewood.tistory.com