File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -366,27 +366,32 @@ This is an open source project. Find the code [here](https://github.com/DCMLab/t
366
366
; App component ;
367
367
; ---------------;
368
368
369
+ (defn unfocus [action!]
370
+ (fn [ev]
371
+ (.. ev -target blur)
372
+ (action! )))
373
+
369
374
(defn tab-component []
370
375
[:div.pure-menu.pure-menu-horizontal
371
376
[:ul.pure-menu-list
372
377
[:li.pure-menu-item
373
378
{:class (if (db/show-input? ) " pure-menu-selected" " " )}
374
379
[:a.pure-menu-link
375
- {:on-click db/toggle-input! :href " javascript:;" }
380
+ {:on-click ( unfocus db/toggle-input!) :href " javascript:;" }
376
381
" Input" ]]
377
382
[:li.pure-menu-item
378
383
{:class (if (db/show-output? ) " pure-menu-selected" " " )}
379
384
[:a.pure-menu-link
380
- {:on-click db/toggle-output! :href " javascript:;" }
385
+ {:on-click ( unfocus db/toggle-output!) :href " javascript:;" }
381
386
" Output" ]]
382
387
[:li.pure-menu-item
383
388
{:class (if (db/show-preview? ) " pure-menu-selected" " " )}
384
389
[:a.pure-menu-link
385
- {:on-click db/toggle-preview! :href " javascript:;" }
390
+ {:on-click ( unfocus db/toggle-preview!) :href " javascript:;" }
386
391
" Preview" ]][:li.pure-menu-item
387
392
{:class (if (db/show-manual? ) " pure-menu-selected" " " )}
388
393
[:a.pure-menu-link
389
- {:on-click db/toggle-manual! :href " javascript:;" }
394
+ {:on-click ( unfocus db/toggle-manual!) :href " javascript:;" }
390
395
" Help" ]]]])
391
396
392
397
(defn app-component []
You can’t perform that action at this time.
0 commit comments