Bläddra i källkod

Fix focus issue when select-input has placeholder

Dawn Hammond 11 år sedan
förälder
incheckning
e3751422f0
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -2637,6 +2637,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 .attr('for', this.search.attr('id'));
 
             this.search.on("input paste", this.bind(function() {
+                if (this.search.attr('placeholder') && !this.search.val()) return;
                 if (!this.isInterfaceEnabled()) return;
                 if (!this.opened()) {
                     this.open();