li tag 오류
-
[typeScript 오류] li tag : onMouseOver must be accompanied by onFocus for accessibility프론트엔드 개발자가 될거야./ts 2023. 2. 7. 15:39
setIsListHover(true)} onMouseOut={() => setIsListHover(false)} > li tag에 onMouseOver, onMouseOut 이벤트를 추가했더니 eslint typeScript 오류가 났다. onMouseOver must be accompanied by onFocus for accessibility. onMouseOut must be accompanied by onBlur for accessibility. 라는데.. https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/93f78856655696a55309440593e0948c6fb96134/docs/rules/mouse-events-have-key-even..