Skip to content

Commit

Permalink
Labels should check for label existence not value existence Fixes #6123
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Mar 18, 2018
1 parent ab535ba commit 0e5c824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2586,7 +2586,7 @@ $.fn.dropdown = function(parameters) {
;
$label = settings.onLabelCreate.call($label, escapedValue, text);

if(module.has.value(value)) {
if(module.has.label(value)) {
module.debug('User selection already exists, skipping', escapedValue);
return;
}
Expand Down

0 comments on commit 0e5c824

Please sign in to comment.