mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
🐛 Refresh clip content button state after toggling it (#12353)
This commit is contained in:
parent
feb73f0fd8
commit
556d604e67
@ -154,6 +154,8 @@
|
||||
(get n-values :rotation))
|
||||
(identical? (get o-values :hide-in-viewer)
|
||||
(get n-values :hide-in-viewer))
|
||||
(identical? (get o-values :show-content)
|
||||
(get n-values :show-content))
|
||||
(identical? (get o-values :width)
|
||||
(get n-values :width))
|
||||
(identical? (get o-values :height)
|
||||
|
||||
@ -55,4 +55,9 @@
|
||||
;; force a re-render so the X/Y inputs enabled/disabled state updates.
|
||||
(t/is (false? (check-measures-menu-props
|
||||
(props (assoc base-values :layout-item-absolute false))
|
||||
(props (assoc base-values :layout-item-absolute true)))))))
|
||||
(props (assoc base-values :layout-item-absolute true))))))
|
||||
|
||||
(t/testing "re-renders when clip content changes but nothing else does"
|
||||
(t/is (false? (check-measures-menu-props
|
||||
(props (assoc base-values :show-content false))
|
||||
(props (assoc base-values :show-content true)))))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user