From 66f77e1467b11dee615f56659de000498156463c Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Thu, 4 Jul 2024 15:48:45 +0100 Subject: [PATCH] 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. --- src/quo/components/wallet/keypair/view.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quo/components/wallet/keypair/view.cljs b/src/quo/components/wallet/keypair/view.cljs index 72f5ec937f..877f68db3f 100644 --- a/src/quo/components/wallet/keypair/view.cljs +++ b/src/quo/components/wallet/keypair/view.cljs @@ -102,7 +102,7 @@ :container-style container-style :theme theme)) :on-press #(when (= action :selector) (on-press)) - :pointer-events :box-only} + :pointer-events (when (= action :selector) :box-only)} [rn/view {:style style/header-container} [avatar props] [rn/view