Skip to content

Commit 6549320

Browse files
committed
Merge pull request select2#432 from brettmas/master
make original option available to formatSelection on init
2 parents 2027c0c + c577158 commit 6549320

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)