Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix render issue on hide parameter names option changed
  • Loading branch information
maksat.allakyev committed May 22, 2024
commit 33bc8f0778f0138116148afacb17cf5f021abf73
8 changes: 6 additions & 2 deletions CS/AspNetCoreCustomItem/wwwroot/js/ParameterItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
}

renderContent($element, changeExisting) {
var element = $element.get(0);
this._element = $element;
var element = this._element.get(0);
if (!changeExisting) {
while (element.firstChild)
element.removeChild(element.firstChild);
Expand Down Expand Up @@ -174,7 +175,7 @@

_subscribeProperties() {
this.subscribe('showHeaders', (showHeaders) => { this._update({ showHeaders: showHeaders }); });
this.subscribe('showParameterName', (showParameterName) => { this._update({ showParameterName: showParameterName }); });
this.subscribe('showParameterName', (showParameterName) => { this._update({ showParameterName: showParameterName, rerender: true }); });
this.subscribe('automaticUpdates', (automaticUpdates) => { this._update({ automaticUpdates: automaticUpdates }) });
}

Expand All @@ -195,6 +196,9 @@
}
}
this._setGridHeight();
if (options.rerender) {
this.renderContent(this._element, false);
}
}
}
class ParameterItem {
Expand Down