Skip to content

Tapping on PlainText powered blocks does not make the block-holder selected #251

@mzorz

Description

@mzorz

What I want now is to be able to tap into a PlainText block, see the cursor appears, and make the Block automatically get selected (bubble the event up to get isSelected to be set to true).
Currently, what happens is you have to tap on the borders of the block to make it be selected.

This happens for PlainText-based blocks as well, so it should be easier to isolate the problem by not using RecyclerView nor Aztec to try and understand what's going on.

Ideas:

  • make the touch event be grabbed first by the touchable area in the block-holder? (I mean, investigate around that)
  • if that doesn't work, then using onFocus in PlainText to bubble up a Selected event, that makes isSelected turn to true for the block holder representing such a block.
  • furthermore, there are plans to use InputTextState-like state, but that's on a different level (keyboard handling will need this to be able to hide/show the keyboard not only on InputText but also on Aztec RN wrapper).

Metadata

Metadata

Labels

[Type] BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions