Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiselect cloning #866

Open
ni-marchuk opened this issue Apr 19, 2020 · 0 comments
Open

Multiselect cloning #866

ni-marchuk opened this issue Apr 19, 2020 · 0 comments

Comments

@ni-marchuk
Copy link

ni-marchuk commented Apr 19, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant