Forráskód Böngészése

fix missing placeholder. closes #1614

Igor Vaynberg 11 éve
szülő
commit
c4529b8700
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2084,7 +2084,7 @@ the specific language governing permissions and limitations under the Apache Lic
 
         isPlaceholderOptionSelected: function() {
             var placeholderOption;
-            if (!this.opts.placeholder) return false; // no placeholder specified so no option should be considered
+            if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered
             return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected'))
                 || (this.opts.element.val() === "")
                 || (this.opts.element.val() === undefined)