Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Nov 8, 2024
1 parent 60748e9 commit a6fbc14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/cm-search-replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class SearchBox {

this.initElements(el);
this.activeInput = this.searchInput;
// @ts-ignore
this.element.style.display = 'none';
// this.bindKeys();

Expand Down Expand Up @@ -532,15 +533,18 @@ export default class SearchBox {
hide() {
const { cm } = this;
this.clearSearch(cm);
// @ts-ignore
this.element.style.display = 'none';
cm.focus();
}

isVisible() {
// @ts-ignore
return this.element.style.display !== 'none';
}

show(value, isReplace) {
// @ts-ignore
this.element.style.display = '';
this.replaceBox.style.display = isReplace ? '' : 'none';
this.isReplace = isReplace;
Expand Down

0 comments on commit a6fbc14

Please sign in to comment.