cljfx

https://github.com/cljfx/cljfx
2019-08-11T14:40:27.024900Z

hello. I'm trying to set up a :list-view with cljfx. But when selecting an element, I have to click twice for the selection highlight to display, even though the event handler seems to change the selection as it should. The first time the event handler fires but the list UI does not update. Second time it updates. This is how I'm setting up the list:

(defn list-view [{:keys [data selection]}]
  {:fx/type fx.ext.list-view/with-selection-props
   :props   {:selection-mode           :single
             :on-selected-item-changed {:event/type ::select-list-elem}
             :selected-item            selection}
   :desc    {:fx/type      :list-view
             :cell-factory (fn [{:keys [name]}]
                             {:style {}
                              :text  name})
             :items        (vals data)}})
Any ideas of what might be happening? Thanks!