🐛 Avoid numeric inputs to allow big numbers

This commit is contained in:
Eva 2022-03-30 11:23:27 +02:00 committed by Andrés Moya
parent 4909e7861f
commit 134265094c
2 changed files with 30 additions and 29 deletions

View file

@ -42,6 +42,7 @@
### :bug: Bugs fixed ### :bug: Bugs fixed
- Avoid numeric inputs to allow big numbers [Taiga #2858](https://tree.taiga.io/project/penpot/issue/2858)
- Fix component contex menu size [Taiga #2480](https://tree.taiga.io/project/penpot/issue/2480) - Fix component contex menu size [Taiga #2480](https://tree.taiga.io/project/penpot/issue/2480)
- Add shadow to artboard make it lose the fill [Taiga #3139](https://tree.taiga.io/project/penpot/issue/3139) - Add shadow to artboard make it lose the fill [Taiga #3139](https://tree.taiga.io/project/penpot/issue/3139)
- Avoid numeric inputs to change its value without focusing them [Taiga #3140](https://tree.taiga.io/project/penpot/issue/3140) - Avoid numeric inputs to change its value without focusing them [Taiga #3140](https://tree.taiga.io/project/penpot/issue/3140)

View file

@ -82,8 +82,8 @@
(cond (cond
(d/num? new-value) (d/num? new-value)
(-> new-value (-> new-value
(cljs.core/max us/min-safe-int) (cljs.core/max (/ us/min-safe-int 2))
(cljs.core/min us/max-safe-int) (cljs.core/min (/ us/max-safe-int 2))
(cond-> (cond->
(d/num? min-val) (d/num? min-val)
(cljs.core/max min-val) (cljs.core/max min-val)