Skip to content

[dropdown] allowAdditions callback without multiple selection #2306

Discussion options

You must be logged in to vote

Use onChange and check for class addition

$('.ui.dropdown').dropdown({
  allowAdditions: true,
  onChange: function(value, text, $item) {
    if ($item.hasClass('addition')) {
      console.log('added ' + value);
    }
  }
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ivangomes
Comment options

Answer selected by lubber-de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment