mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-09 06:04:58 -05:00
* Don't match text inputs with a trailing '-selectized' in their id, fixes #2396 * update news * parentheses
This commit is contained in:
committed by
Winston Chang
parent
64b3095f2c
commit
4eaa9c7ea9
@@ -1,7 +1,12 @@
|
||||
var textInputBinding = new InputBinding();
|
||||
$.extend(textInputBinding, {
|
||||
find: function(scope) {
|
||||
return $(scope).find('input[type="text"], input[type="search"], input[type="url"], input[type="email"]');
|
||||
var $inputs = $(scope).find('input[type="text"], input[type="search"], input[type="url"], input[type="email"]');
|
||||
// selectize.js 0.12.4 inserts a hidden text input with an
|
||||
// id that ends in '-selectized'. The .not() selector below
|
||||
// is to prevent textInputBinding from accidentally picking up
|
||||
// this hidden element as a shiny input (#2396)
|
||||
return $inputs.not('input[type="text"][id$="-selectized"]');
|
||||
},
|
||||
getId: function(el) {
|
||||
return InputBinding.prototype.getId.call(this, el) || el.name;
|
||||
|
||||
Reference in New Issue
Block a user