danirus / django-comments-xtd

A pluggable Django comments application with thread support, follow-up notifications, mail confirmation, like/dislike flags, moderation, a ReactJS plugin and Bootstrap 5.3.
https://django-comments-xtd.readthedocs.io
BSD 2-Clause "Simplified" License
594 stars 157 forks source link

Double click on the button (send comment) #284

Closed ogurec-ogurec closed 3 years ago

ogurec-ogurec commented 3 years ago

The situation is this: If you fill out a comment and very quickly click on the "Submit" button (for example, by double clicking), then the comment is published twice - duplicated. Maybe three.This applies to comments and answers. Perhaps this already needs to be implemented on the user side (double-click protection), but I can't help but mention it.

image

danirus commented 3 years ago

Thanks for the report @ogurec-ogurec. Can be fix in the frontend, disabling the send button since it's been clicked and until there is a response.