Skip to content

Typing does not work with contenteditable elementsΒ #230

@foxbunny

Description

@foxbunny

I'm on a project using user-event 8.1.0 and dom-testing-ibrary 6.12.2. When I use the type() function on an element with contentEditable==true, then the following error occurs in DTL:

Error: The given element does not have a value setter

From the source, I understand that type() is very specialized for handling normal input elements. I'm therefore not sure if it would be reasonable to look for workarounds for contenteditables here, or maybe I need an entirely different implementation for it. Could someone please give me some pointers?

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