question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.9.4 throws error if data has apostrophe using select2

See original GitHub issue

see 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vedmackcommented, Jun 1, 2019

check 0.9.4.beta.27 ,

0reactions
trf000commented, Nov 12, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found