-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Select2 Tags not working well on v4.0.3? #979
Labels
Comments
here is my demo Fiddle |
here is my second test Update Fiddle |
Hello You ca see the problem if you active the debug mode $('a.tag_edit').editable({
select2: {
debug:true,
tags: true,
tokenSeparators: [',', ' ']
},
success: function(response, newValue){
if(response.status != 200) return response.message;
$(this).html(response.value);
},
error: function(response, newValue) {
return response.responseText;
}
}); with this option we have a warning 'Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a I correct the problem to change the html tag from input to select. src/inputs/select2/select2.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/inputs/select2/select2.js b/src/inputs/select2/select2.js
index 0b3a7f3..d6d0f46 100644
--- a/src/inputs/select2/select2.js
+++ b/src/inputs/select2/select2.js
@@ -312,7 +312,7 @@ $(function(){
@property tpl
@default <input type="hidden">
**/
- tpl:'<input type="hidden">',
+ tpl:'<select type="hidden">',
/**
Configuration of select2. [Full list of options](http://ivaynberg.github.com/select2).
|
Duplicate for #756? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's my code
HTML
What I expected is displaying Tags editor but here is what I got
it show normal select2, I've tried fill
tags
using array but not work.btw I'm using
select2.full.min.js
becauseUncaught Error: No select2/compat/inputData
The text was updated successfully, but these errors were encountered: