Skip to content

Feature: Add an option to disable focus on click in CheckListPlugin #7689

@gregzo

Description

@gregzo

Description

In checkList.ts, handleClick explicitly focuses the node. This is a problem on mobile, as it makes it impossible to check or uncheck list items without causing the keyboard to automatically animate in.

Use cases

  • Toggling checkboxes without focusing the editor on mobile.

Alternative solutions

  • We rolled out our own plugin, but it has broken on us with lexical updates in the last update.

Impact

Adding a disableTakeFocusOnClick?=false parameter to plugin initialization would have no negative impact on existing users but would better support checklists on mobile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over existing featuregood first issueGood for newcomerslistsRelates to Lexical Lists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions