0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-14 19:19:09 -05:00

Merge pull request #5282 from penpot/alotor-hotfix-interactions

🐛 Fix problem creating manual overlay interactions
This commit is contained in:
Andrey Antukh 2024-11-11 23:55:41 +01:00 committed by GitHub
commit 9d0ca089fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 7 deletions

View file

@ -1,5 +1,11 @@
# CHANGELOG # CHANGELOG
## 2.3.3
### :bug: Bugs fixed
- Fix problem creating manual overlay interactions [Taiga #9146](https://tree.taiga.io/project/penpot/issue/9146)
## 2.3.2 ## 2.3.2
### :bug: Bugs fixed ### :bug: Bugs fixed

View file

@ -206,14 +206,16 @@
(watch [_ _ _] (watch [_ _ _]
(let [interactions (ctsi/update-interaction (:interactions shape) index update-fn) (let [interactions (ctsi/update-interaction (:interactions shape) index update-fn)
interaction (nth interactions index)] interaction (nth interactions index)]
(rx/of (dwsh/update-shapes (rx/of
[(:id shape)] (dwsh/update-shapes
(fn [shape] [(:id shape)]
(assoc shape :interactions interactions)) (fn [shape]
options) (-> shape
(update :interactions ctsi/update-interaction index update-fn)))
options)
(when (some? (:destination interaction)) (when (some? (:destination interaction))
(dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options)))))))) (dwsh/update-shapes [(:destination interaction)] cls/show-in-viewer options))))))))
(defn remove-all-interactions-nav-to (defn remove-all-interactions-nav-to
"Remove all interactions that navigate to the given frame." "Remove all interactions that navigate to the given frame."