Skip to content

make selectable optional for Text elements #901

@dciccale

Description

@dciccale

the selectable property was included on all texts as per this pr #314

however it is always set to true. would be useful to have an option to toggle that.

on my app i have built a custom context menu on long press for markdowned content, and on iOS particularly the "Copy" popover/tooltip appears as well as my context menu which already includes a "Copy" action item.

Currently unless I create a custom renderer that remaps all text types like paragraph, headers, etc, without selection there's no way to turn it off. That's why for now what I do is iterate on the generated list of elements, and clone any Text element without this prop and return the new tree.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions