We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 563e724 commit a447391Copy full SHA for a447391
1 file changed
js/html-populators.xsl
@@ -36,7 +36,7 @@
36
//check for input elements existing to handle empty elements
37
&& o.previousElementSibling.previousElementSibling.querySelector("input, textarea, select")
38
//check if element has been populated with data from an xml document
39
- && !o.previousElementSibling.previousElementSibling.querySelector("input, textarea, select").hasAttribute("data-xsd2html2xml-filled")) {
+ && Array.from(o.previousElementSibling.previousElementSibling.querySelectorAll("input, textarea, select")).filter(function(el) {return el.hasAttribute("data-xsd2html2xml-filled")}).length == 0) {
40
clickRemoveButton(
41
o.parentElement.children[0].querySelector("legend > button.remove, span > button.remove")
42
);
0 commit comments