Skip to content

Commit d3695f9

Browse files
authored
Merge pull request #21 from alexsmonte/master
Erro com label com espacos
2 parents c027f75 + d65ada9 commit d3695f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dev/pickout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ var pickout = (function(){
347347

348348
// Title Option Group
349349
if (!!data.optGroup) {
350-
var optCreated = _.$('li[data-opt-group='+data.optGroup.label+']', main);
350+
var optCreated = _.$('li[data-opt-group='+data.optGroup.label.replace(/\s/g,'')+']', main);
351351

352352
// Created if not exists
353353
if (!optCreated) {
@@ -666,4 +666,4 @@ var pickout = (function(){
666666

667667
if (typeof module !== 'undefined' && module.exports) {
668668
module.exports = pickout;
669-
}
669+
}

0 commit comments

Comments
 (0)