Skip to content

Input with type checkbox does flags checked attribute as unknown property in v7.31.3 #3383

Closed
@MikeBeas

Description

@MikeBeas

Following up on #3380, I've just installed v7.31.3, but I'm still seeing an issue where the checked attribute for a checkbox input is being flagged as unknown.

<input
  type="checkbox"
  checked={checked}
  disabled={disabled}
  id={id}
  onChange={onChange}
/>

error Unknown property 'checked' found react/no-unknown-property

I'm also seeing this issue when using custom properties (such as body-scroll-lock-ignore used by body-scroll-lock, for example), so I'll likely end up having to disable this rule altogether unfortunately. Until the most recent release it never had an issue with these attributes and since body-scroll-lock-ignore is not a standard attribute I'm assuming it's not likely to be added to the whitelist for this plugin.

However, checked definitely seems like a bug so I figured I would report it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions