Commit eeebcaec authored by Bruno Burke's avatar Bruno Burke 😁

disable event on disabled button in show-steps

parent 4ca89cc6
Pipeline #45487 passed with stages
in 1 minute and 28 seconds
......@@ -83,7 +83,8 @@
[:span.secondary-content [:b (str (:points step-result) "P")]]
[:a.button.is-danger
{:disabled last-step?
:on-click #(step-delete change-fn path answer step-id)}
:on-click #(when-not last-step? ;;;disable event on disabled button
(step-delete change-fn path answer step-id))}
[:span.icon [:i.fas.fa-minus]]])]]]))
(defn answer-steps [{:keys [answer change-fn phrase-fn result description-id descriptions assocs params
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment