Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In some cases, the answer's content in "edit answer" page disappears #713

Closed
fenbox opened this issue Jan 9, 2024 · 0 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@fenbox
Copy link
Member

fenbox commented Jan 9, 2024

To Reproduce

Steps to reproduce the behavior:

  1. On the question page, click "Edit" under a specific answer.
  2. Go to the editing page, don't make any changes, just click "Cancel".
  3. Go back to the question details page, click "Edit" under the same answer again.
  4. Go to the editing page, and the main content disappears.

Expected behavior

In step 4, the answer's content should be displayed in the main text.

Platform (please complete the following information):

  • Browser Chrome
  • Version 1.2.1
@fenbox fenbox added the bug Something isn't working label Jan 9, 2024
@fenbox fenbox added this to the v1.2.5 milestone Jan 9, 2024
@fenbox fenbox moved this from Todo to Review in Answer Roadmap Jan 12, 2024
shuashuai pushed a commit that referenced this issue Jan 18, 2024
fix #713 .

After changing to `useEffect`, the issue was resolved. I don't know why
we use `useLayoutEffect`. Pls let me know if something I missed.
@fenbox fenbox moved this from Review to Done in Answer Roadmap Jan 19, 2024
@fenbox fenbox closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant