Clear previous comment if it was in edit mode
This commit is contained in:
1 parent
9e1cff014d
commit
a6e9867596
1 file changed
+4
-1
@@ -284,7 +284,10 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController
|
||||
if (!commenting) {
|
||||
FloatingActionButton(
|
||||
onClick = {
|
||||
commentId = -1L
|
||||
if (commentId != -1L) {
|
||||
commentId = -1L
|
||||
userComment = TextFieldValue()
|
||||
}
|
||||
commenting = true
|
||||
},
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user