sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 215 forks source link

Pasted comments via mouse don't persist in markdown grading comments #5772

Open tomgrubbmath opened 2 years ago

tomgrubbmath commented 2 years ago

This is a low priority bug (in my opinion) in the grading system, but I thought I'd raise it just so you know it exists.

Specs: Using Chrome 99 on Linux, in the CoCalc grading window for an assignment

Summary: While grading an assignment and entering comments into the markdown comments section, comments entered by pasting text using the mouse do not persist after hitting the green "Save" button. The same issue does not occur when pasting using Ctrl+V. If you mix and match text entry (i.e., use keystrokes for some text, and copy paste other text using the mouse) only the keystroked text is saved

To reproduce:

  1. Enter the grading window for some assignment
  2. Left click "Enter Grade" for a student
  3. Left click "markdown comments" cell
  4. Right click and paste something
  5. Left click the green "Save" button.

I have a video recording that I can send if needed. This is not a major problem because Ctrl+V works just fine, but it might take some people by surprise.

williamstein commented 1 month ago

I can't reproduce this now.

williamstein commented 1 month ago

Wait, actually I can reproduce this. It seems to be a weird race involving focus / blur and the context menu.

williamstein commented 2 weeks ago

when fixing this, I should also:

williamstein commented 2 weeks ago

More details about state bugs: