0.9.4 throws error if data has apostrophe using select2
See original GitHub issuesee https://codepen.io/louking/pen/yWRWQK and select New Jersey’s using select above table
I saw this in beta 25, but cdn has beta 5 – this traceback is from beta 5
Uncaught Error: Syntax error, unrecognized expression: option[value='New Jersey's']
at Function.Sizzle.error (jquery-3.3.1.js:1541)
at Sizzle.tokenize (jquery-3.3.1.js:2193)
at Function.Sizzle [as find] (jquery-3.3.1.js:815)
at jQuery.fn.init.find (jquery-3.3.1.js:2873)
at appendFilters (jquery.dataTables.yadcf.js:2753)
at HTMLTableElement.<anonymous> (jquery.dataTables.yadcf.js:3723)
at HTMLDocument.dispatch (jquery-3.3.1.js:5183)
at HTMLDocument.elemData.handle (jquery-3.3.1.js:4991)
at Object.trigger (jquery-3.3.1.js:8249)
at HTMLTableElement.<anonymous> (jquery-3.3.1.js:8327)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
yadcf select2 4.0.7 throws error for data apostrophe - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >Select2 single quote selection issue - surveyjs Support
When we render an dropdown using Select2, when one of the choices contains a single quote (') there is an error when selecting...
Read more >The yadcf Open Source Project on Open Hub : Commits Listing Page
bug fix: 0.9.4 throws error if data has apostrophe using select2 · vedmack. More... over 3 years ago. Merge pull request #575 from...
Read more >MySQL error when inserting data containing apostrophes ...
If you enter the text, i.e., "I love Kellog's", we have a ' in the string so it will break the query. To...
Read more >Extension talk:Page Forms/Archive October to December 2020 ...
Contents · #formredlink inside list created by #ask? · Using autoedit on File namespace ($wgPageFormsAutoeditNamespaces global) · Is it possible to change the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
check 0.9.4.beta.27 ,
@vedmack
https://codepen.io/trf000/pen/qBByyGW
I’d keep both versions of the line, or better yet, some kind of flag to determine which to use on a given filter. I’ll never have a case where i am filtering data that containd double quotes, but I will filter names with single quotes on occasion.