@@ -127,7 +127,7 @@ class Dropdown {
127127 */
128128 public isSelected ( value : string ) {
129129 if ( this . options . length > 0 ) {
130- if ( ( this . multipleAllowed ) && this . optionsSelected [ 0 ] ) {
130+ if ( this . multipleAllowed && this . optionsSelected [ 0 ] ) {
131131 // Multiple options can be selected, and "Show All" is selected.
132132 return true ;
133133 }
@@ -237,7 +237,7 @@ class Dropdown {
237237 for ( let i = 0 ; i < this . options . length ; i ++ ) {
238238 const escapedName = escapeHtml ( this . options [ i ] . name ) ;
239239 html += '<div class="dropdownOption' + ( this . optionsSelected [ i ] ? ' ' + CLASS_SELECTED : '' ) + '" data-id="' + i + '" title="' + escapedName + '">' +
240- ( ( this . multipleAllowed && ! this . selectMultipleWithCtrl ) && this . optionsSelected [ i ] ? '<div class="dropdownOptionMultiSelected">' + SVG_ICONS . check + '</div>' : '' ) +
240+ ( this . multipleAllowed && ! this . selectMultipleWithCtrl && this . optionsSelected [ i ] ? '<div class="dropdownOptionMultiSelected">' + SVG_ICONS . check + '</div>' : '' ) +
241241 escapedName + ( typeof this . options [ i ] . hint === 'string' && this . options [ i ] . hint !== '' ? '<span class="dropdownOptionHint">' + escapeHtml ( this . options [ i ] . hint ! ) + '</span>' : '' ) +
242242 ( this . showInfo ? '<div class="dropdownOptionInfo" title="' + escapeHtml ( this . options [ i ] . value ) + '">' + SVG_ICONS . info + '</div>' : '' ) +
243243 '</div>' ;
@@ -297,7 +297,7 @@ class Dropdown {
297297 if ( this . doubleClickTimeout !== null ) this . clearDoubleClickTimeout ( ) ;
298298 if ( doubleClick ) {
299299 // Double click
300- if ( ( this . multipleAllowed ) && option === 0 ) {
300+ if ( this . multipleAllowed && option === 0 ) {
301301 for ( let i = 1 ; i < this . optionsSelected . length ; i ++ ) {
302302 this . optionsSelected [ i ] = ! this . optionsSelected [ i ] ;
303303 }
0 commit comments