fix: configure selectable key-pair to use box-only for pointer-events (#20611)
This change attempts to only to override the default `pointer-events` behaviour for the `quo/keypair` component when the component uses the `selector` action. Now when the `quo/keypair` component is rendered with a selector, only the top-level view of the component will be pressable. And when the `quo/keypair` component is rendered without a selector it will allow for the children of the component to be pressable too.
This commit is contained in:
parent
d16c1a3c85
commit
66f77e1467
|
@ -102,7 +102,7 @@
|
||||||
:container-style container-style
|
:container-style container-style
|
||||||
:theme theme))
|
:theme theme))
|
||||||
:on-press #(when (= action :selector) (on-press))
|
:on-press #(when (= action :selector) (on-press))
|
||||||
:pointer-events :box-only}
|
:pointer-events (when (= action :selector) :box-only)}
|
||||||
[rn/view {:style style/header-container}
|
[rn/view {:style style/header-container}
|
||||||
[avatar props]
|
[avatar props]
|
||||||
[rn/view
|
[rn/view
|
||||||
|
|
Loading…
Reference in New Issue