informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Clicking on drawing tools creates empty annotation #68

Closed RFSH closed 3 years ago

RFSH commented 3 years ago
  1. Go to create mode
  2. Clicking on save will display an error that drawing is required.
  3. Click on any of the drawing tools (path or any other one)
  4. Fill in all the required fields in the form, but don't draw anything.
  5. Click on save and you won't see the error any more.

If you get out of the drawing mode (by switching to display mode, or clicking on any non-drawing options), the error will be displayed after submitting the form.

If you end up saving the annotation, since it's empty, after reloading the page the annotation will not show up at all.