ActivityPub-federated video streaming platform using P2P directly in your web browser
Unlock scroll on destroy
Chocobozzz890d6dc627a3
diff --git a/client/src/app/shared/shared-forms/markdown-textarea.component.ts b/client/src/app/shared/shared-forms/markdown-textarea.component.tsindex 217a7913ce..124338922c 100644--- a/client/src/app/shared/shared-forms/markdown-textarea.component.ts+++ b/client/src/app/shared/shared-forms/markdown-textarea.component.ts@@ -1,5 +1,5 @@import { NgClass, NgIf, ViewportScroller } from '@angular/common'-import { booleanAttribute, Component, ElementRef, forwardRef, Input, OnInit, ViewChild } from '@angular/core'+import { booleanAttribute, Component, ElementRef, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'import { SafeHtml } from '@angular/platform-browser'import { MarkdownService, ScreenService } from '@app/core'@@ -37,7 +37,7 @@ import { FormReactiveErrors } from './form-reactive.service']})-export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {+export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit, OnDestroy {@Input() content = ''@Input() formError: string | FormReactiveErrors | FormReactiveErrors[]@@ -89,6 +89,10 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {this.contentChanged.next(this.content)}+ ngOnDestroy () {+ this.unlockBodyScroll()+ }+propagateChange = (_: any) => { /* empty */ }writeValue (description: string) {