@@ -274,7 +274,7 @@ window.ComponentDot = class {
274
274
option . classList . remove ( 'option-active' ) ;
275
275
if ( option . lastChild instanceof HTMLElement ) option . lastChild . innerHTML = '' ;
276
276
this . menuSelect ( select ) ;
277
- if ( this . select_data . length == 0 ) this . SELECTED_DOM . textContent = this . menu_placeholder ;
277
+ if ( this . select_data . length === 0 ) this . SELECTED_DOM . textContent = this . menu_placeholder ;
278
278
return ;
279
279
}
280
280
if ( this . limit > 0 && this . select_data . length >= this . limit ) {
@@ -779,7 +779,7 @@ window.ComponentCascadeDot = class {
779
779
if ( Array . isArray ( search ) ) {
780
780
if ( search . indexOf ( d . key ) === - 1 ) return ;
781
781
} else {
782
- if ( d . val . indexOf ( search . value ) === - 1 ) return ;
782
+ if ( d . val . indexOf ( search . value ) === - 1 && search . value . indexOf ( d . val ) === - 1 ) return ;
783
783
}
784
784
if ( Array . isArray ( this . COVER_STACK_HASH_DOM [ stack ] ) && this . COVER_STACK_HASH_DOM [ stack ] . indexOf ( d . key ) !== - 1 ) return ;
785
785
let div = document . createElement ( 'div' ) ;
@@ -1851,7 +1851,7 @@ window.ComponentCascadeLine = class {
1851
1851
if ( search . value === '' ) return ;
1852
1852
this . dimensional_data . forEach ( ( data , stack ) => {
1853
1853
data . forEach ( ( d , index ) => {
1854
- if ( d . val . indexOf ( search . value ) !== - 1 ) this . search_result . push ( { 'stack' : stack , 'index' : index } ) ;
1854
+ if ( d . val . indexOf ( search . value ) !== - 1 || search . value . indexOf ( d . val ) !== - 1 ) this . search_result . push ( { 'stack' : stack , 'index' : index } ) ;
1855
1855
} ) ;
1856
1856
} ) ;
1857
1857
if ( this . search_result . length === 0 ) return ;
0 commit comments