mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix incorrect value coercing on legacy select component (#7710)
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled
on managing values with select
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
- Fix problem when checking usage with removed teams [Taiga #12442](https://tree.taiga.io/project/penpot/issue/12442)
|
- 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 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 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
|
## 2.10.1
|
||||||
|
|
||||||
|
|||||||
@@ -89,14 +89,14 @@
|
|||||||
(let [value (rotate-option-backward options index length)]
|
(let [value (rotate-option-backward options index length)]
|
||||||
(swap! state* assoc :current-value value)
|
(swap! state* assoc :current-value value)
|
||||||
(when (fn? on-change)
|
(when (fn? on-change)
|
||||||
(on-change (dm/str value))))
|
(on-change value)))
|
||||||
|
|
||||||
(or (kbd/right-arrow? e)
|
(or (kbd/right-arrow? e)
|
||||||
(kbd/down-arrow? e))
|
(kbd/down-arrow? e))
|
||||||
(let [value (rotate-option-forward options index)]
|
(let [value (rotate-option-forward options index)]
|
||||||
(swap! state* assoc :current-value value)
|
(swap! state* assoc :current-value value)
|
||||||
(when (fn? on-change)
|
(when (fn? on-change)
|
||||||
(on-change (dm/str value))))
|
(on-change value)))
|
||||||
|
|
||||||
(or (kbd/enter? e)
|
(or (kbd/enter? e)
|
||||||
(kbd/space? e))
|
(kbd/space? e))
|
||||||
|
|||||||
Reference in New Issue
Block a user