Comment icon indicating copy to clipboard operation
Comment copied to clipboard

Comments Editor value misplacing

Open ChathuraGH opened this issue 2 years ago • 4 comments

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 avatar Dec 16 '23 03:12 ChathuraGH

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

ChathuraGH avatar Dec 18 '23 20:12 ChathuraGH

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

ogurec-ogurec avatar Dec 21 '23 00:12 ogurec-ogurec

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()

`

ChathuraGH avatar Dec 21 '23 07:12 ChathuraGH

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

cancelEdit()
before editComment()

? DAB version 2.8.0

ogurec-ogurec avatar Dec 21 '23 22:12 ogurec-ogurec