Use async await to fix empty quote reply at first time (#23168) #23258
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Backport #23168
The reason why quote reply is empty is when quote reply is clicked, it triggers the click function on
.comment-form-replybutton, and when the first time this function is triggered, easyMDE for the reply has not yet initialized, so that click handler of.quote-replybutton inrepo-legacy.jsgot anundefinedas easyMDE, and the following lines which put quoted reply into the easyMDE is not executed. The workaround in this PR is to pass the replied content to '.comment-form-reply' button if easyMDE is not yet initialized (quote reply first clicked) and put the replied content into it the after easyMDE is created.Now quote reply on first click:
default.mov
Update:
The above change is not appropriate as stated in the comment Use await instead
Close #22075.
Close #23247.