Skip to content

Commit 695bf83

Browse files
author
hikki
committed
v3.6
1 parent dcdef0d commit 695bf83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/assets/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ window.ComponentDot = class {
274274
option.classList.remove('option-active');
275275
if(option.lastChild instanceof HTMLElement) option.lastChild.innerHTML = '';
276276
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;
278278
return;
279279
}
280280
if (this.limit > 0 && this.select_data.length >= this.limit) {
@@ -779,7 +779,7 @@ window.ComponentCascadeDot = class {
779779
if (Array.isArray(search)) {
780780
if (search.indexOf(d.key) === -1) return;
781781
} 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;
783783
}
784784
if (Array.isArray(this.COVER_STACK_HASH_DOM[stack]) && this.COVER_STACK_HASH_DOM[stack].indexOf(d.key) !== -1) return;
785785
let div = document.createElement('div');
@@ -1851,7 +1851,7 @@ window.ComponentCascadeLine = class {
18511851
if (search.value === '') return;
18521852
this.dimensional_data.forEach((data, stack) => {
18531853
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});
18551855
});
18561856
});
18571857
if (this.search_result.length === 0) return;

0 commit comments

Comments
 (0)