select2 / select2-bootstrap-theme

A Select2 v4 Theme for Bootstrap 3
https://select2.github.io/select2-bootstrap-theme/
MIT License
872 stars 499 forks source link

class 'notranslate' not working on select2 drop down for google translater #69

Open govardhanyadavAG opened 6 years ago

govardhanyadavAG commented 6 years ago

while working with google translator on particular dropdown which is of select2 and which has to be not translated with on language change.so, i have done adding the notranslate class as shown in the below mentioned script.

<asp:DropDownList ID="ddlOwner_Workgroup_Id" runat="server" CssClass="select2WithSearch">
                    <asp:ListItem>SELECT</asp:ListItem>
                    <asp:ListItem>hello</asp:ListItem>
                    <asp:ListItem>hi</asp:ListItem>
        </asp:DropDownList>
    <script type="text/javascript">
            $("#<%=ddlOwner_Workgroup_Id.ClientID%>").select2({
                containerCssClass: "notranslate",
                dropdownCssClass: "notranslate"
            });
        </script>

when the page has been rendered the notranslate class has been added for both container and the dropdown. but after changing the language the dropdown still is getting translated.