Skip to content

Commit

Permalink
remove some setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaob1990 committed Nov 6, 2024
1 parent 92973bc commit afb252e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,6 @@ export abstract class TextInputSuggest<T> implements ISuggestOwner<T> {
}

this.suggestions = suggestions;
this.updateSuggestions();
}

private updateSuggestions() {
this.suggestEl.empty();
this.suggestions.forEach((item, index) => {
const suggestionEl = this.suggestEl.createDiv('suggestion-item');
suggestionEl.dataset.index = String(index);
this.renderSuggestion(item, suggestionEl);
});
this.containerEl.style.left = this.inputEl.offsetLeft + 'px';
this.containerEl.style.top = this.inputEl.offsetTop + 82 + this.inputEl.offsetHeight + 'px';
document.body.appendChild(this.containerEl);
}

close(): void {
Expand Down

0 comments on commit afb252e

Please sign in to comment.