mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 12:29:00 +00:00
Revert "🐛 Highlight first matching font when searching the font picker (#9512)"
This reverts commit aba6e214edecf7d2d8c3d31b12b6900909a3ef32.
This commit is contained in:
parent
c4115a6143
commit
2c5aaaa3c6
@ -165,12 +165,6 @@
|
|||||||
(let [key (events/listen js/document "keydown" on-key-down)]
|
(let [key (events/listen js/document "keydown" on-key-down)]
|
||||||
#(events/unlistenByKey key)))
|
#(events/unlistenByKey key)))
|
||||||
|
|
||||||
(mf/with-effect [fonts]
|
|
||||||
(when (seq fonts)
|
|
||||||
(let [sel-id (:id @selected)]
|
|
||||||
(when-not (some #(= (:id %) sel-id) fonts)
|
|
||||||
(reset! selected (first fonts))))))
|
|
||||||
|
|
||||||
(mf/with-effect [@selected]
|
(mf/with-effect [@selected]
|
||||||
(when-let [inst (mf/ref-val flist)]
|
(when-let [inst (mf/ref-val flist)]
|
||||||
(when-let [index (:index @selected)]
|
(when-let [index (:index @selected)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user