crabber icon indicating copy to clipboard operation
crabber copied to clipboard

Text not being cleared from text boxes (minor issue)

Open viiuan opened this issue 3 years ago • 9 comments

Describe the bug Text written for a quote remolt/reply stays in the text box after posting + going to quote remolt/reply to something else

To Reproduce

  1. Remolt/reply to a molt
  2. Remolt/reply to another molt It depends on which action you try again, but the text "sticks"

Expected behavior The textbox to be clear when starting a new quote molt or reply

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Vivaldi (Chromium)
  • Version: 3.7.2218.52

viiuan avatar Oct 23 '21 21:10 viiuan

It took me a while to be able to find how to reproduce this, on my end this was only reproducible when you close out the reply/molt modal without actually posting it, if you actually post (which causes the page to refresh) the content of the modal is cleared.

hqnna avatar Oct 24 '21 18:10 hqnna

Which is intended behaviour, no? I've deliberately closed the modal to read the original post more before finishing my reply.

When we switch the modals to Ajax then we'll want to clear them upon submit but it will effectively work the same way as it does now.

jakeledoux avatar Oct 24 '21 18:10 jakeledoux

Yeah i don't think this is a bug, rather just intended behavior

hqnna avatar Oct 24 '21 18:10 hqnna

on my end this was only reproducible when you close out the reply/molt modal without actually posting it on my end it also happened after posting when doing the same action on a new molt, which is why i brought it here, but then I wonder why that'd happen to me

viiuan avatar Oct 24 '21 23:10 viiuan

Strange as I tried multiple times to reproduce it and couldn't, could be a browser specific bug

hqnna avatar Oct 24 '21 23:10 hqnna

I've gone to bed already but I just wanted to chime in to say that most of these "hard to reproduce" bugs tend to be caused by the order of ajax page loads. For instance: directly navigating to /wild-west and then ajax loading /notifications was the cause of one of the bugs I fixed earlier today.

Hope that helps you track it down.

jakeledoux avatar Oct 24 '21 23:10 jakeledoux

i just realized it could also be maybe like, navigating back a page using my browser buttons rather than the in-site one

viiuan avatar Oct 26 '21 19:10 viiuan

Ohh you might be right. Sometimes it uses the cached HTML which includes the modal contents (and sometimes the button will say "Submitting...")

jakeledoux avatar Oct 26 '21 19:10 jakeledoux

If this is still an issue I can look into it later today.

hqnna avatar Nov 04 '21 14:11 hqnna