From 604f6ca024335b6bddba7aa741314055e12507cc Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 7 Nov 2025 13:16:39 +0100 Subject: [PATCH] :bug: Fix incorrect value coercing on legacy select component (#7710) on managing values with select --- CHANGES.md | 1 + frontend/src/app/main/ui/components/select.cljs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 51a4f5f319..a9919a543e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -77,6 +77,7 @@ - Fix problem when checking usage with removed teams [Taiga #12442](https://tree.taiga.io/project/penpot/issue/12442) - Fix focus mode persisting across page/file navigation [Taiga #12469](https://tree.taiga.io/project/penpot/issue/12469) - Fix shadow color validation [Github #7705](https://github.com/penpot/penpot/pull/7705) +- Fix exception on selection blend-mode using keyboard [Github #7710](https://github.com/penpot/penpot/pull/7710) ## 2.10.1 diff --git a/frontend/src/app/main/ui/components/select.cljs b/frontend/src/app/main/ui/components/select.cljs index 03e10ff299..d00267078d 100644 --- a/frontend/src/app/main/ui/components/select.cljs +++ b/frontend/src/app/main/ui/components/select.cljs @@ -89,14 +89,14 @@ (let [value (rotate-option-backward options index length)] (swap! state* assoc :current-value value) (when (fn? on-change) - (on-change (dm/str value)))) + (on-change value))) (or (kbd/right-arrow? e) (kbd/down-arrow? e)) (let [value (rotate-option-forward options index)] (swap! state* assoc :current-value value) (when (fn? on-change) - (on-change (dm/str value)))) + (on-change value))) (or (kbd/enter? e) (kbd/space? e))