title: yii2 button click event precedes data-confirm message
body: <p>I have used data-confirm attribute with Html::a tags in datagrids and it worked. But now I want to use it with a button like this:</p>
  
  <pre><code>    &lt;?php echo Html::button("&lt;span class='icon delete'&gt;&lt;/span&gt;", [
          "class" =&gt; "delete",
          "title" =&gt; Yii::t("app-upload-list", "delete"),
          "data-confirm" =&gt; Yii::t("yii", "Are you sure you want to delete this item?"),
      ])
  </code></pre>
  
  <p>I don't use anchor here because this button doesn't do anything in server-side.
  But when I attach a click event to the button, it precedes the confirm box. I can get round it by write the confirm code myself in the click event and use a data-my-confirm (or so) attribute to prevent the double confirm boxes, but it is not so nice. Can I do that with data-confirm?</p>