๐Ÿšง[DOM] Input elements should have autocomplete attributes (suggested: "current-password"):๐Ÿšง

ํ˜œํ˜œยท2023๋…„ 5์›” 5์ผ
0

Error Note

๋ชฉ๋ก ๋ณด๊ธฐ
2/19
post-custom-banner

โ— ๋ฌธ์ œ ๋‚ด์šฉ

form ํƒœ๊ทธ ์›Œ๋‹์„ ํ•ด๊ฒฐํ–ˆ๋”๋‹ˆ ๋‚˜ํƒ€๋‚œ ์›Œ๋‹ ๐Ÿ˜ฎ input ์š”์†Œ๋Š” autocomplete ์†์„ฑ์„ ๊ฐ€์ ธ์•ผ ํ•˜๊ณ , "current-password" ๋ฅผ ์ถ”์ฒœํ•œ๋‹ค๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์™€ ์žˆ๋‹ค!
์ฐพ์•„๋ณด๋‹ˆ๊นŒ ํฌ๋กฌ ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์•„๋‹ˆ๋ฉด ํ•ด๋‹น ๋ฌธ์ œ๋Š” ๋ฐœ์ƒํ•˜์ง€ ์•Š์œผ๋ฉฐ, ํฌ๋กฌ์—์„œ๋Š” ๋ชจ๋“  ๋น„๋ฐ€๋ฒˆํ˜ธ์™€ form data ๋ฅผ ์ž๋™ ์ €์žฅ ๋ฐ ์ž๋™ ์™„์„ฑ ํ•˜๋ ค๊ณ  ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ์›น ๊ฐœ๋ฐœ์ž์—๊ฒŒ ๋ธŒ๋ผ์šฐ์ €์— ๋” ํŽธ๋ฆฌํ•œ ์–‘์‹ ์š”์†Œ ๋ฒ”์œ„๋ฅผ ์ค€์ˆ˜ํ•˜๋ผ๊ณ  ๊ถŒ๊ณ ํ•ด์„œ ์œ„์™€ ๊ฐ™์€ ์›Œ๋‹์ด ๋œจ๋Š” ๊ฑฐ๋ผ๊ณ  ํ•œ๋‹ค...!

๐Ÿ›  ๋ฌธ์ œ ํ•ด๊ฒฐ

autocomplete ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ด์ „์— ์ž…๋ ฅํ–ˆ๋˜ ๊ฒƒ์„ ์ฐธ๊ณ ํ•˜์—ฌ ์ž๋™์™„์„ฑ์„ ์‹œ์ผœ์ค„์ง€ ์—ฌ๋ถ€๋ฅผ ๊ฒฐ์ •ํ•˜๋Š” ์†์„ฑ์œผ๋กœ, ๋‚˜ ๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ๊ทธ๋ƒฅ off๋กœ ์„ค์ •ํ•ด ์คฌ๋‹ค.

<input type='password' 
	name='input_pw' 
	value={inputPw}
	autoComplete="off" 
	onChange={handleInputPw} />

์ด๋ ‡๊ฒŒ ํ•ด์ฃผ๋ฉด ์›Œ๋‹์€ ์‚ฌ๋ผ์ง„๋‹ค 0.<

๐Ÿ™‡โ€โ™‚๏ธ ์ฐธ๊ณ ์ž๋ฃŒ

[TIL] input tag [DOM]Password field is not contained in a form

profile
์‰ฝ๊ฒŒ๋งŒ์‚ด์•„๊ฐ€๋ฉด์žฌ๋ฏธ์—†์–ด๋น™๊ณ 
post-custom-banner

0๊ฐœ์˜ ๋Œ“๊ธ€