1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Switch editableList buttons from <a> to <button> elements

This commit is contained in:
Nick O'Leary 2021-06-08 10:56:04 +01:00
parent bfc1f95190
commit 9b46dbaff1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -94,7 +94,7 @@
}
buttons.forEach(function(button) {
var element = $('<a href="#" class="red-ui-button red-ui-button-small red-ui-editableList-addButton" style="margin-top: 4px; margin-right: 5px;"></a>')
var element = $('<button type="button" class="red-ui-button red-ui-button-small red-ui-editableList-addButton" style="margin-top: 4px; margin-right: 5px;"></button>')
.appendTo(that.topContainer)
.on("click", function(evt) {
evt.preventDefault();