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

Comments Editor value misplacing #267

Open
ChathuraGH opened this issue Dec 16, 2023 · 4 comments
Open

Comments Editor value misplacing #267

ChathuraGH opened this issue Dec 16, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ChathuraGH
Copy link

Environment

1) go to your example site.

Describe the bug

When you try to edit multiple comments at once and then try to cancel the opened editors, cancelled comments get disappeared.

Steps To Reproduce

  1. go to your example site
  2. create 1+(2,3,4) comments
  3. refresh the page
  4. click on edit comment buttons on multiple comments(this opens multiple forms)
  5. now cancel one(by clicking on close comment edit button)
  6. try cancelling other opened by clicking cancel buttons
  7. now you should see other comments get disappear

Expected behavior

No matter how much forms have opened and closed in any order, comments should not get disappeared.

Screenshots

before editing
image

after editing
image

@ChathuraGH ChathuraGH added the bug Something isn't working label Dec 16, 2023
@ChathuraGH
Copy link
Author

ChathuraGH commented Dec 18, 2023

I actually fixed this bug my own. In my local environment.😲.
If anyone needs the code, I can send it. 😁.

@ChathuraGH ChathuraGH changed the title Comments Editor misplacing Comments Editor value misplacing Dec 18, 2023
@ogurec-ogurec
Copy link

@ChathuraGH It would be great if you could share the code

@ChathuraGH
Copy link
Author

I have an answer.
it worked for me.
but, what is your 'django-comments-dab' version ?
I can't answer without knowing the version..

`
what you should do is ,use cancelEdit()

before editComment()

`

@ogurec-ogurec
Copy link

@ChathuraGH I didn’t quite understand where to add these functions:

cancelEdit()
before editComment()

?
DAB version 2.8.0

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
None yet
Development

No branches or pull requests

2 participants