mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
perf: empty containerEl on tab hide instead on display beginning
Thus, it ensure there is no persist and remain unused element in the background.
This commit is contained in:
parent
cf7906e851
commit
af3c3c05da
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,6 @@ export class ExtendedSettingTab extends PluginSettingTab {
|
|||
display(): void {
|
||||
let { containerEl } = this,
|
||||
{ settings } = this.plugin;
|
||||
containerEl.empty();
|
||||
let settingsUIConfig = retrieveSettingUIConfigs(settings);
|
||||
this.drawFromConfig(settingsUIConfig, containerEl);
|
||||
this.isHidden = false;
|
||||
|
|
@ -56,6 +55,7 @@ export class ExtendedSettingTab extends PluginSettingTab {
|
|||
this.refreshInternal = this.rebuildColorStyleRules = false;
|
||||
this.emptyTagSettingItems();
|
||||
this.isHidden = true;
|
||||
this.containerEl.empty();
|
||||
super.hide();
|
||||
}
|
||||
emptyTagSettingItems() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue