You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no tag in this component, only table & div elements.
But i got eslint error on th tag, which is, "A control must be associated with a text label.eslint[jsx-a11y/control-has-associated-label]"
I think this comes from " "part, but i have to use or empty space ' ' in thtag cause of layout.
And also there's no label in this code!
Is this bug ? or can i fix this?
MyComponent.tsx
<table><thead><tr><th> </th>/* no content. just for table layout */<th>content</th><th>price</th></tr></thead><tbody><tr><td><imgsrc="icon.png"alt="" />
</td><td>content1</td><td>content2</td></tr></tbody></table>
The text was updated successfully, but these errors were encountered:
ashtonisher
changed the title
Eslint control-has-associated-label error with th tag
Eslint control-has-associated-label error on non-label tag
Jul 11, 2024
ashtonisher
changed the title
Eslint control-has-associated-label error on non-label tag
Eslint "control-has-associated-label" error on non-label tag
Jul 11, 2024
#Inappropriate eslint error
There's no tag in this component, only
table
&div
elements.But i got eslint error on
th
tag, which is, "A control must be associated with a text label.eslint[jsx-a11y/control-has-associated-label]"I think this comes from " "part, but i have to use or empty space ' ' in
th
tag cause of layout.And also there's no
label
in this code!Is this bug ? or can i fix this?
MyComponent.tsx
.eslintrc.js
(in monorepo)The text was updated successfully, but these errors were encountered: