From e21018147c3a39cfb8753fcafc5fb21d25f3f83a Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 6 May 2013 20:26:30 -0700 Subject: [PATCH] fixes #1263 --- select2.css | 7 ++++++- select2.js | 4 +--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/select2.css b/select2.css index 5236d481..84ced2b1 100644 --- a/select2.css +++ b/select2.css @@ -99,7 +99,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@ } .select2-container .select2-choice abbr { - display: inline-block; + display: none; width: 12px; height: 12px; position: absolute; @@ -114,6 +114,11 @@ Version: @@ver@@ Timestamp: @@timestamp@@ cursor: pointer; outline: 0; } + +.select2-container.select2-allowclear .select2-choice abbr { + display: inline-block; +} + .select2-container .select2-choice abbr:hover { background-position: right -11px; cursor: pointer; diff --git a/select2.js b/select2.js index ea8e83a3..566cdb9b 100644 --- a/select2.js +++ b/select2.js @@ -1693,7 +1693,7 @@ the specific language governing permissions and limitations under the Apache Lic "class": "select2-container" }).html([ "", - "  ", + "  ", "
" , "
", "", @@ -2005,7 +2005,6 @@ the specific language governing permissions and limitations under the Apache Lic this.selection.addClass("select2-default"); this.container.removeClass("select2-allowclear"); - this.selection.find("abbr").hide(); } }, @@ -2084,7 +2083,6 @@ the specific language governing permissions and limitations under the Apache Lic if (this.opts.allowClear && this.getPlaceholder() !== undefined) { this.container.addClass("select2-allowclear"); - this.selection.find("abbr").show(); } },