Skip to content
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

< or > in option value breaks dropdown #58

Closed
kevindees opened this issue Apr 18, 2012 · 1 comment
Closed

< or > in option value breaks dropdown #58

kevindees opened this issue Apr 18, 2012 · 1 comment

Comments

@kevindees
Copy link

I'm using this with drupal it adds a value of to the select box but dropkick sees this as an element. I have fixed the issues with the following. its not sexy but it works. around line 327

oTemplate = oTemplate.replace('{{ text }}', $option.text().replace("<", "").replace(">", ""));

and line 108

data.label     = $original.text().replace("<", "").replace(">", "");
@clupasq
Copy link
Contributor

clupasq commented Aug 20, 2012

I also ran into this issue when applying dropkick to the elements present in CKEditor. The first option is tipycally "", which produced the same effect. This is a sample of how the issue can be reproduced: http://jsfiddle.net/FRSMM/ (if dropkick is not applied, both dropdowns work: http://jsfiddle.net/FRSMM/1/)

clupasq added a commit to clupasq/DropKick that referenced this issue Aug 20, 2012
@clupasq clupasq mentioned this issue Aug 20, 2012
jonathanselander added a commit to jonathanselander/DropKick that referenced this issue Dec 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants