Skip to content

Commit a5b8b07

Browse files
committed
Fixed changeNodeName child nodes append
1 parent 96f0ba5 commit a5b8b07

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

public/js/vvvebjs/components-common.js

+2-25
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ function changeNodeName(node, newNodeName) {
5959
newNode.setAttribute(attributes[i].nodeName, attributes[i].nodeValue);
6060
}
6161

62-
for (e of node.childNodes) {
63-
newNode.append(e);
62+
while (node.hasChildNodes()) {
63+
newNode.appendChild(node.removeChild(node.firstChild))
6464
}
6565

6666
node.replaceWith(newNode);
@@ -110,29 +110,6 @@ Vvveb.Components.extend("_base", "_base", {
110110
sort: base_sort++,
111111
section: style_section,
112112
data: {header:"Display"},
113-
}, {
114-
name: "State",
115-
key: "state",
116-
sort: base_sort++,
117-
section: style_section,
118-
inline:true,
119-
col:12,
120-
inputtype: SelectInput,
121-
data: {
122-
options: [{
123-
value: "",
124-
text: "- none -"
125-
},{
126-
value: "hover",
127-
text: "Hover"
128-
},{
129-
value: "active",
130-
text: "Active"
131-
},{
132-
value: "focus",
133-
text: "Focus"
134-
}]
135-
}
136113
},{
137114
//linked styles notice message
138115
name:"",

0 commit comments

Comments
 (0)