Skip to content

Error: Diplayed value in UI can be null #1290

Open
@hinogi

Description

@hinogi

Reproduction example

null

Prerequisites

Setting a value to null programmatically.

return typeof value === 'object' && UIValue in value

Expected behavior

Nothing happens

Actual behavior

TypeError: right hand side of 'in' should be an object, got null
Since EcmaScript returns object on typeof null this function is not safe

return typeof value === 'object' && UIValue in value

User-event version

14.6.1

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds assessmentThis needs to be looked at by a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions