jQuery Error when Tags Dropdown is Enabled
-
Hi,
This a great plugin. However, there are a few concerns I wish to draw your attention to.
——————-
1. I’m facing the following error to the developer console when there are multiple tags to be selected from the dropdown.
Uncaught Error: Syntax error, unrecognized expression: option[value="["books","tease","visit"]"] at Function.ea.error (jquery.js?ver=1.12.4-wp:2) at ea.tokenize (jquery.js?ver=1.12.4-wp:2) at Function.ea [as find] (jquery.js?ver=1.12.4-wp:2) at n.fn.init.find (jquery.js?ver=1.12.4-wp:2) at new n.fn.init (jquery.js?ver=1.12.4-wp:2) at n (jquery.js?ver=1.12.4-wp:2) at HTMLSelectElement.<anonymous> (jquery.usp.core.js?ver=20200817:93) at Function.each (jquery.js?ver=1.12.4-wp:2) at n.fn.init.each (jquery.js?ver=1.12.4-wp:2) at usp_cookie (jquery.usp.core.js?ver=20200817:77) ea.error @ jquery.js?ver=1.12.4-wp:2 ea.tokenize @ jquery.js?ver=1.12.4-wp:2 ea @ jquery.js?ver=1.12.4-wp:2 find @ jquery.js?ver=1.12.4-wp:2 n.fn.init @ jquery.js?ver=1.12.4-wp:2 n @ jquery.js?ver=1.12.4-wp:2 (anonymous) @ jquery.usp.core.js?ver=20200817:93 each @ jquery.js?ver=1.12.4-wp:2 each @ jquery.js?ver=1.12.4-wp:2 usp_cookie @ jquery.usp.core.js?ver=20200817:77 usp_remember @ jquery.usp.core.js?ver=20200817:122 (anonymous) @ jquery.usp.core.js?ver=20200817:73 i @ jquery.js?ver=1.12.4-wp:2 fireWith @ jquery.js?ver=1.12.4-wp:2 ready @ jquery.js?ver=1.12.4-wp:2 J @ jquery.js?ver=1.12.4-wp:2Screenshot URL:
https://ibb.co/KGBYp9X——————-
2. A Custom checkbox still treated unchecked in case the error above fires or a proper image size doesn’t meet (?usp-error=height-min,required-checkbox)
——————-
3. Why does the appearance of the Tags/Category dropdown changes on postback if there is an error?
——————-
4. How to keep all categories selected despite they are added at a later time? From the plugin settings -> Click to view/select categories -> Select categories to display in the Category field.
——————-
Steps to produce:
Default theme TwentyTwenty
Form: Default form by USP
Post Tags: Enable and require
Use Existing Tags: Checked (Check this box to display a select/dropdown menu of existing tags (valid when Tag field is displayed))
Custom field: Added
Minimum image size required. I have 900×600.
——————-
The form appears in a good state when it is loaded the very first time. However, in case of an error, the issues appear when there is ?usp-error=anything parameter in the URL.
There is no customization done and all fields are default.
Do let me know.
Thank you.
The topic ‘jQuery Error when Tags Dropdown is Enabled’ is closed to new replies.