From e3a9d07add7ce132a0cc05781a12e17f28f3d60f Mon Sep 17 00:00:00 2001 From: pablodip Date: Fri, 2 Feb 2018 23:39:49 +0100 Subject: [PATCH] fix filter single-static-option when clicking with touchpad in mac --- src/cljs/commiteth/bounties.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/cljs/commiteth/bounties.cljs b/src/cljs/commiteth/bounties.cljs index 5d7600c..af1b2c7 100644 --- a/src/cljs/commiteth/bounties.cljs +++ b/src/cljs/commiteth/bounties.cljs @@ -98,10 +98,12 @@ (for [[option-type option-text] (::ui-model/bounty-filter-type.options filter-type-def)] ^{:key (str option-type)} [:div.open-bounties-filter-list-option - (merge {:on-click #(do (rf/dispatch [::handlers/set-open-bounty-filter-type - filter-type - option-type]) - (reset! tooltip-open? false))} + (merge {:on-click #(do (rf/dispatch [::handlers/set-open-bounty-filter-type + filter-type + option-type]) + (reset! tooltip-open? false)) + :tab-index 0 + :on-focus #(reset! tooltip-open? true)} (when (= option-type current-filter-value) {:class "active"})) option-text])])