Skip to content

Commit 544e13a

Browse files
author
Claudéric Demers
authored
nit: variable naming nitpick
1 parent cb370d0 commit 544e13a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SortableContainer/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ export default function sortableContainer(WrappedComponent, config = {withRef: f
214214
};
215215

216216
const fields = node.querySelectorAll('input, textarea, select');
217-
const nodeCloned = node.cloneNode(true);
217+
const clonedNode = node.cloneNode(true);
218218

219219
fields.forEach((field) => {
220-
const element = nodeCloned.querySelector("input[name='"+field.name+"'], textarea[name='"+field.name+"'], select[name='"+field.name+"']");
220+
const element = clonedNode.querySelector("input[name='"+field.name+"'], textarea[name='"+field.name+"'], select[name='"+field.name+"']");
221221
element ? element.value = field.value : null;
222222
});
223223

224-
this.helper = this.document.body.appendChild(nodeCloned);
224+
this.helper = this.document.body.appendChild(clonedNode);
225225

226226
this.helper.style.position = 'fixed';
227227
this.helper.style.top = `${this.boundingClientRect.top - margin.top}px`;

0 commit comments

Comments
 (0)