title: click trigger not working on disabled button after enabling
body: <p>while making a chrome extension, i am trying to simulate a click event on the buttons of a web page. the function simulateClick() is working fine for all the buttons except one which is disabled. this disabled button gets enabled when something is typed in the preceding text-area. i changed the value of textarea, still the button did not get enabled. so i tried enabling it myself, by removing the attribute "disabled" from that button. still no luck.</p>
  
  <pre><code>let msgNote = document.querySelector(inputBox);
  msgNote.value = "new value";
  let doneBtn = document.querySelector("disabled-done-btn");
  doneBtn.removeAttribute("disabled");
  simulateClick(doneBtn);
  </code></pre>
  
  <pre><code>function simulateClick(onElement) {
    let mouseClick = document.createEvent("MouseEvents");
    mouseClick.initMouseEvent("click", true, true, window,
      0, 0, 0, 0, 0, false, false, false, false, 0, null);
    let cb = onElement;
    let canceled = !cb.dispatchEvent(mouseClick);
  }
  </code></pre>