Skip to content

Commit

Permalink
remove_button: fix event handler when label contains html
Browse files Browse the repository at this point in the history
  • Loading branch information
sjhewitt authored and brianreavis committed Feb 10, 2014
1 parent 7f24338 commit 500a7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/remove_button/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Selectize.define('remove_button', function(options) {
e.preventDefault();
if (self.isLocked) return;

var $item = $(e.target).parent();
var $item = $(e.currentTarget).parent();
self.setActiveItem($item);
if (self.deleteSelection()) {
self.setCaret(self.items.length);
Expand Down

0 comments on commit 500a7d6

Please sign in to comment.