File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2083,11 +2083,11 @@ the specific language governing permissions and limitations under the Apache Lic
20832083
20842084 isPlaceholderOptionSelected : function ( ) {
20852085 var placeholderOption ;
2086- return this . opts . placeholder &&
2087- ( ( placeholderOption = this . getPlaceholderOption ( ) ) !== undefined && placeholderOption . is ( ':selected' ) ) ||
2088- ( this . opts . element . val ( ) === "" ) ||
2089- ( this . opts . element . val ( ) === undefined ) ||
2090- ( this . opts . element . val ( ) === null ) ;
2086+ if ( ! this . opts . placeholder ) return false ; // no placeholder specified so no option should be considered
2087+ return ( ( placeholderOption = this . getPlaceholderOption ( ) ) !== undefined && placeholderOption . is ( ':selected' ) )
2088+ || ( this . opts . element . val ( ) === "" )
2089+ || ( this . opts . element . val ( ) === undefined )
2090+ || ( this . opts . element . val ( ) === null ) ;
20912091 } ,
20922092
20932093 // single
You can’t perform that action at this time.
0 commit comments