We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2233d6 commit bdcff69Copy full SHA for bdcff69
1 file changed
src/js/virtual-list.js
@@ -178,13 +178,13 @@ var VirtualList = function (listBlock, params) {
178
}
179
else {
180
if (vl.template) {
181
- vl.tempDomElement.innerHTML = vl.template(items[i], {index: index});
+ vl.tempDomElement.innerHTML = vl.template(items[i], {index: index}).trim();
182
183
else if (vl.params.renderItem) {
184
- vl.tempDomElement.innerHTML = vl.params.renderItem(index, items[i]);
+ vl.tempDomElement.innerHTML = vl.params.renderItem(index, items[i]).trim();
185
186
187
- vl.tempDomElement.innerHTML = items[i];
+ vl.tempDomElement.innerHTML = items[i].trim();
188
189
item = vl.tempDomElement.childNodes[0];
190
if (vl.params.cache) vl.domCache[index] = item;
0 commit comments