fix: fn `make-confirm-modal` not respond to enter key-down

experiment-on-whiteboard-exporting
situ2001 2022-10-17 22:42:59 +08:00 committed by Tienson Qin
parent 59add5203f
commit e7188a643e
1 changed files with 3 additions and 1 deletions

View File

@ -640,7 +640,9 @@
[:div.mt-5.sm:mt-4.sm:flex.sm:flex-row-reverse
[:span.flex.w-full.rounded-md.shadow-sm.sm:ml-3.sm:w-auto
[:button.inline-flex.justify-center.w-full.rounded-md.border.border-transparent.px-4.py-2.bg-indigo-600.text-base.leading-6.font-medium.text-white.shadow-sm.hover:bg-indigo-500.focus:outline-none.focus:border-indigo-700.focus:shadow-outline-indigo.transition.ease-in-out.duration-150.sm:text-sm.sm:leading-5
{:type "button"
{:type "button"
:autoFocus "on"
:class "ui__modal-enter"
:on-click #(and (fn? on-confirm)
(on-confirm % {:close-fn close-fn
:sub-selected (and *sub-checkbox-selected @*sub-checkbox-selected)}))}