Skip to content

element with contentEditable=undefined crashes in Preact but not React #2926

Description

@davidruisinger

Reproduction

This works in React:

<p contentEditable={undefined}><p>

codesandbox

But throws an error in Preact:

Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('') is not one of 'true', 'false', 'plaintext-only', or 'inherit'

codesandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions