From 3bb644e029653244ad2f3b48e6cf35c359417d31 Mon Sep 17 00:00:00 2001 From: Darren Hwang Date: Fri, 22 Jul 2022 14:45:37 -0700 Subject: [PATCH] Speed up rendering when there are lot of select choen A simple change to speed up rendering when there are lots of select drop down to conver to select-chosen --- coffee/chosen.jquery.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index 0054f0e89f0..c6a5276af88 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -396,7 +396,7 @@ class Chosen extends AbstractChosen this.single_deselect_control_build() @selected_item.removeClass("chosen-default") - @selected_item.find("span").html(text) + @selected_item.find("span").text(text) result_deselect: (pos) -> result_data = @results_data[pos]