mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed error
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
button.addEventListener("click", function() {
|
||||
var clone = document.createElement(element.tagName);
|
||||
var input = clone.querySelector("input");
|
||||
|
||||
if (element.name) {
|
||||
clone.name = element.name;
|
||||
@@ -46,7 +47,9 @@
|
||||
button.parentNode.insertBefore(clone, button);
|
||||
}
|
||||
|
||||
clone.querySelector("input").focus();
|
||||
if(input) {
|
||||
input.focus();
|
||||
}
|
||||
|
||||
Array.prototype.slice
|
||||
.call(clone.querySelectorAll("[data-remove]"))
|
||||
|
||||
Reference in New Issue
Block a user