ehynds / jquery-ui-multiselect-widget

jQuery UI MultiSelect widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiselect cloning

ni-marchuk opened this issue · comments

When cloning a multislect with data, it is necessary that its contents are also created in the body here is this container ui-multiselect-menu ui-widget ui-widget-content ui-corner-all but this does not happen. How can I solve this problem?
handleAddRow() {
console.log('add');
let currentRow = event.target.closest('.expandTable__row');
let dubNode = currentRow.cloneNode(true);
let nodeSelects = dubNode.querySelectorAll("select");
currentRow.after(dubNode);
};
Here is the code dubNode is a duplicate of elements with multiselect. currentRow the block in which the duplicate is being inserted