mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Increase textarea debounce time for custom markup
This commit is contained in:
parent
eba2a7a834
commit
6a056bbe4d
3 changed files with 5 additions and 3 deletions
|
@ -31,6 +31,8 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
|||
@Input() markdownType: 'text' | 'enhanced' = 'text'
|
||||
@Input() customMarkdownRenderer?: (text: string) => Promise<string | HTMLElement>
|
||||
|
||||
@Input() debounceTime = 150
|
||||
|
||||
@Input() markdownVideo: Video
|
||||
|
||||
@Input() name = 'description'
|
||||
|
@ -59,7 +61,7 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
|||
ngOnInit () {
|
||||
this.contentChanged
|
||||
.pipe(
|
||||
debounceTime(150),
|
||||
debounceTime(this.debounceTime),
|
||||
distinctUntilChanged()
|
||||
)
|
||||
.subscribe(() => this.updatePreviews())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue