Skip to content

Commit

Permalink
Prevent .selectize() updates from destroying .data() and event li…
Browse files Browse the repository at this point in the history
…steners (#3923)

Co-authored-by: cpsievert <cpsievert@users.noreply.github.com>
  • Loading branch information
cpsievert and cpsievert authored Oct 26, 2023
1 parent 97a12ec commit a1b9fda
Show file tree
Hide file tree
Showing 9 changed files with 1,226 additions and 1,230 deletions.
8 changes: 1 addition & 7 deletions inst/www/shared/selectize/js/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1064,14 +1064,8 @@ $.extend(Selectize.prototype, {
self.ignoreHover = self.settings.ignoreHover;
});

var inputPlaceholder = $('<div></div>');
var inputChildren = $input.children().detach();

$input.replaceWith(inputPlaceholder);
inputPlaceholder.replaceWith($input);

this.revertSettings = {
$children : inputChildren,
$children : $input.children().detach(),
tabindex : $input.attr('tabindex')
};

Expand Down
2 changes: 1 addition & 1 deletion inst/www/shared/selectize/js/selectize.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit a1b9fda

Please sign in to comment.