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

Values with quotation marks filtered incorrectly by filter_type select #317

Closed
int-ua opened this issue May 18, 2016 · 5 comments
Closed
Labels

Comments

@int-ua
Copy link

int-ua commented May 18, 2016

Any value that contains quotation marks will be used only partially when selected in the filter, ending on the first quotation mark.

@quazerro
Copy link

this bug has been found in yadcf.js 0.8.9 (jquery.dataTables.js 1.10.11, jQuery v2.2.3)

@vedmack
Copy link
Owner

vedmack commented May 18, 2016

Please provide a jsbin / jsfiddle test case.

@quazerro
Copy link

quazerro commented May 18, 2016

here it is:
https://jsfiddle.net/gz0b2438/1/

@int-ua
Copy link
Author

int-ua commented May 18, 2016

Hack-ish workaround is to simply add .replace(/"/g, '&quot;') to the value while inserting it into an <option> attribute value. AFAIU forming selects with jQuery (.attr()) is safer.

@vedmack
Copy link
Owner

vedmack commented Jun 4, 2016

fixed in 0.9.0.beta.19
see working sample

@vedmack vedmack closed this as completed Jun 4, 2016
@vedmack vedmack added the bug label Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants