mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 03:58:53 +08:00
fix collapsing of note revisions
This commit is contained in:
parent
86cf8f3202
commit
cba7e5a59f
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ export default class CollapsibleWidget extends TabAwareWidget {
|
|||
this.$bodyWrapper = this.$widget.find('.body-wrapper');
|
||||
this.$bodyWrapper.attr('id', this.componentId); // for toggle to work we need id
|
||||
|
||||
this.widgetName = this.constructor.name;
|
||||
// not using constructor name because of webpack mangling class names ...
|
||||
this.widgetName = this.widgetTitle.replace(/[^[a-zA-Z0-9]/g, "_");
|
||||
|
||||
if (!options.is(this.widgetName + 'Collapsed')) {
|
||||
this.$bodyWrapper.collapse("show");
|
||||
|
|
Loading…
Reference in a new issue