Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 994dd884 authored by Raj Khemani's avatar Raj Khemani
Browse files

Fix unintended button click

parent 1ed9978f
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -32,9 +32,13 @@ export default class ViewManager {
      $copyStep.id = step.id;
      $copyStep.classList.add("active");
      $copyStep.classList.remove("inactive");
      $copyStep.addEventListener("click", async () => {
        this.executeStep($copyStep, step.name);
      const $button = $copyStep.querySelector("button");
      if ($button) {
        $button.addEventListener("click", async (event) => {
          event.stopPropagation();
          await this.executeStep($button, step.name);
        });
      }
      let $processCtn = document.getElementById("process-ctn");
      if ($processCtn) {
        $processCtn.appendChild($copyStep);