mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 16:06:10 +02:00
🐛 Fix update-libraries dialog disappear when clicking outside
This commit is contained in:
parent
f9f5f0af7d
commit
3f45863823
2 changed files with 8 additions and 3 deletions
|
@ -66,6 +66,7 @@ is a number of cores)
|
||||||
- Fix problem with onboarding to a team [Taiga #10143](https://tree.taiga.io/project/penpot/issue/10143)
|
- Fix problem with onboarding to a team [Taiga #10143](https://tree.taiga.io/project/penpot/issue/10143)
|
||||||
- Fix problem with grid layout crashing [Taiga #10127](https://tree.taiga.io/project/penpot/issue/10127)
|
- Fix problem with grid layout crashing [Taiga #10127](https://tree.taiga.io/project/penpot/issue/10127)
|
||||||
- Fix rename locked boards [Taiga #10174](https://tree.taiga.io/project/penpot/issue/10174)
|
- Fix rename locked boards [Taiga #10174](https://tree.taiga.io/project/penpot/issue/10174)
|
||||||
|
- Fix update-libraries dialog disappear when clicking outside [Taiga #10238](https://tree.taiga.io/project/penpot/issue/10238)
|
||||||
|
|
||||||
## 2.4.3
|
## 2.4.3
|
||||||
|
|
||||||
|
|
|
@ -65,12 +65,16 @@
|
||||||
(assoc state :notification notification)))
|
(assoc state :notification notification)))
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ stream]
|
(watch [_ state stream]
|
||||||
(rx/merge
|
(rx/merge
|
||||||
(let [stopper (rx/filter (ptk/type? ::hide) stream)]
|
(let [stopper (rx/filter (ptk/type? ::hide) stream)
|
||||||
|
route-id (dm/get-in state [:route :data :name])]
|
||||||
|
|
||||||
(->> stream
|
(->> stream
|
||||||
(rx/filter (ptk/type? :app.main.router/navigate))
|
(rx/filter (ptk/type? :app.main.router/navigate))
|
||||||
(rx/map (fn [_] (hide)))
|
(rx/map deref)
|
||||||
|
(rx/filter #(not= route-id (:id %)))
|
||||||
|
(rx/map hide)
|
||||||
(rx/take-until stopper)))
|
(rx/take-until stopper)))
|
||||||
(when (:timeout data)
|
(when (:timeout data)
|
||||||
(let [stopper (rx/filter (ptk/type? ::show) stream)]
|
(let [stopper (rx/filter (ptk/type? ::show) stream)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue