Skip to content

Commit c577158

Browse files
committed
original option not available to formatSelection on init
The original option isn't available to formatSelection when initializing the selection from a select[multiple]
1 parent 2027c0c commit c577158

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@
17901790

17911791
var data = [];
17921792
element.find(":selected").each2(function (i, elm) {
1793-
data.push({id: elm.attr("value"), text: elm.text()});
1793+
data.push({id: elm.attr("value"), text: elm.text(), element: elm});
17941794
});
17951795

17961796
if ($.isFunction(callback))

0 commit comments

Comments
 (0)