Skip to content

Commit

Permalink
No longer need focus fix that was added in #3875 for the 0.15.2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Sep 14, 2023
1 parent b6407d8 commit 599e479
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 23 deletions.
7 changes: 0 additions & 7 deletions inst/www/shared/shiny.js
Original file line number Diff line number Diff line change
Expand Up @@ -9029,13 +9029,6 @@
control.destroy();
control = this._newSelectize($el, settings);
}
if (this._isMultipleSelect($el)) {
control.on("item_add", function() {
var input = control.$control_input;
if (input && input.length)
input[0].focus();
});
}
return control;
}
}, {
Expand Down
4 changes: 2 additions & 2 deletions inst/www/shared/shiny.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions inst/www/shared/shiny.min.js.map

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions srcts/src/bindings/input/selectInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,6 @@ class SelectInputBinding extends InputBinding {
control = this._newSelectize($el, settings);
}

// (Hopefully temporary) workaround for a v0.15.2 selectize bug where the
// dropdown (instead of the <input>) gets focus after an item added via
// click.
// FIXME: https://github.com/selectize/selectize.js/issues/2032
if (this._isMultipleSelect($el)) {
control.on("item_add", function () {
const input = control.$control_input;
if (input && input.length) input[0].focus();
});
}

return control;
}

Expand Down

0 comments on commit 599e479

Please sign in to comment.