Merge pull request #6108 from kasimi/ticket/16677

[ticket/16677] Copy event listeners and element data when populating dropdown
This commit is contained in:
Máté Bartus 2021-01-04 21:38:12 +01:00 committed by GitHub
commit a298411fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -544,7 +544,7 @@ function parseDocument($container) {
} }
// Copy the list items to the dropdown // Copy the list items to the dropdown
if (!copied1) { if (!copied1) {
var $clones1 = $linksFirst.clone(); var $clones1 = $linksFirst.clone(true);
$menuContents.prepend($clones1.addClass('clone clone-first').removeClass('leftside rightside')); $menuContents.prepend($clones1.addClass('clone clone-first').removeClass('leftside rightside'));
if ($this.hasClass('post-buttons')) { if ($this.hasClass('post-buttons')) {