Skip to content

Commit

Permalink
Raised "item_update" event when selected item is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulwakade committed May 20, 2024
1 parent 0638102 commit c84e59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"main": "dist/js/selectize.js",
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
"version": "0.15.2-d4",
"version": "0.15.2-d5",
"author": "Brian Reavis <[email protected]>",
"contributors": [
"Ris Adams <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,7 @@ $.extend(Selectize.prototype, {
$item_new = $(self.render('item', data));
if ($item.hasClass('active')) $item_new.addClass('active');
$item.replaceWith($item_new);
self.trigger('item_update', value_new, $item_new);
}

// invalidate last query because we might have updated the sortField
Expand Down

0 comments on commit c84e59c

Please sign in to comment.