Skip to content

Request for context.stopRenamingItem(item.index) as counter for existing startRenamingItem function #271

@LydiaF

Description

@LydiaF

Is your feature request related to a problem? Please describe.
I am using a controlled tree and using <input /> directly to render the item as we want to mimic the Workflowy editing. Calling context.startRenamingItem(item.index) on keystroke in the input field, enables the user to use the arrow cursor in the text field.

The problem is I can't figure out how to stop renaming the item programatically. This means we can't get the keyboard arrow shortcuts in action again when user is finished editing.

Describe the solution you'd like
On context object, have a function called stopRenamingItem.

Describe alternatives you've considered
Can't think of a solution.

Additional context

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions