mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
fix: select options order changed when choosing values
This commit is contained in:
@@ -653,7 +653,8 @@
|
||||
(f chosen selected?)))]
|
||||
(hooks/use-effect!
|
||||
(fn []
|
||||
(set-items! (sort-select-items property selected-choices items)))
|
||||
(when-not (= (count items) (count sorted-items))
|
||||
(set-items! (sort-select-items property selected-choices items))))
|
||||
[items])
|
||||
(select/select (assoc opts
|
||||
:selected-choices selected-choices
|
||||
|
||||
Reference in New Issue
Block a user