-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensured replies remain visible when parent comment is being edited (#…
…21756) REF https://linear.app/ghost/issue/PLG-274/ - Currently, replies are hidden when the parent comment is being edited. This PR ensures that replies remain visible when the parent comment is being edited. - To achieve this, the `CommentComponent` now checks if the parent comment is being edited. If so, the comment content is swapped by the EditForm, while the comment's avatar, header, menu, and replies remain visible. - The Form component now only renders the FormEditor. A FormWrapper component is used to wrap the avatar and comment header. - This Form component is used in the EditForm without the FormWrapper, as it is already wrapped in the CommentComponent. - The ReplyForm and the MainForm use the FormWrapper. - The Avatar component now also accepts a `member` prop, which is used to display the avatar image. This is because it's no longer used inside the Form component.
- Loading branch information
Showing
8 changed files
with
252 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.