diff --git a/dev/pickout.js b/dev/pickout.js index 104de72..c3b2fc6 100644 --- a/dev/pickout.js +++ b/dev/pickout.js @@ -347,7 +347,7 @@ var pickout = (function(){ // Title Option Group if (!!data.optGroup) { - var optCreated = _.$('li[data-opt-group='+data.optGroup.label+']', main); + var optCreated = _.$('li[data-opt-group='+data.optGroup.label.replace(/\s/g,'')+']', main); // Created if not exists if (!optCreated) { @@ -666,4 +666,4 @@ var pickout = (function(){ if (typeof module !== 'undefined' && module.exports) { module.exports = pickout; -} \ No newline at end of file +}