Commit 2c54ca33 authored by Kristi Park's avatar Kristi Park Committed by Commit Bot

[NTP] Prevent the Cancel and Delete buttons from submitting the edit custom link form

<button> is type="submit" by default. Adding type="button" will prevent
the Cancel and Delete buttons from triggering the "submit" event.

Bug: 874018
Change-Id: Ie72ec07ddbaeccee29588612fc8938f268150f20
Reviewed-on: https://chromium-review.googlesource.com/1174804
Commit-Queue: Kristi Park <kristipark@chromium.org>
Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583441}
parent 941614d3
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
<div id="invalid-url" class="error-msg"></div> <div id="invalid-url" class="error-msg"></div>
</div> </div>
<div class="buttons-container"> <div class="buttons-container">
<button id="delete" class="secondary" tabindex="0"></button> <button id="delete" class="secondary" type="button" tabindex="0"></button>
<span class="right"> <span class="right">
<button id="cancel" class="secondary" tabindex="0"></button> <button id="cancel" class="secondary" type="button" tabindex="0"></button>
<button type="submit" id="done" class="primary" tabindex="0"></button> <button type="submit" id="done" class="primary" tabindex="0"></button>
</span> </span>
</div> </div>
......
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