CMB2-Snippet-Library icon indicating copy to clipboard operation
CMB2-Snippet-Library copied to clipboard

[Widget snippet] Javascript selector error because selector with square brackets

Open TranQuyetThang opened this issue 8 years ago • 1 comments
trafficstars

Hi @jtsternberg I tried to set up follow cmb2 widget snippet (just copy and run). But error Javascript appear when i click button Add or Upload File::

Uncaught Error: Syntax error, unrecognized expression: label[for=widget-cmb2-widget-boilerplate-slug[2][image]]

I think, should change selector:
From: label[for=widget-cmb2-widget-boilerplate-slug[2][image]] To: label[for="widget-cmb2-widget-boilerplate-slug[2][image]"]

TranQuyetThang avatar Aug 07 '17 04:08 TranQuyetThang

Not seeing this anywhere in the repo, in terms of where the js part is from. At least if still an issue, can you point me to where this selector is found at

tw2113 avatar Oct 19 '18 15:10 tw2113