biothings / discovery-app

The Data Discovery Engine project by the CD2H Data working-group
http://discovery.biothings.io
Apache License 2.0
4 stars 9 forks source link

[bug-ish] Editing a new Common Validation sometimes requires two clicks #192

Open flaneuse opened 1 year ago

flaneuse commented 1 year ago

Describe the bug When you create a new property to be validated, it comes prepopulated with text ("type": "EDIT to define"). When you click edit the first time, the edit window pops up with a blank entry. This is NOT the property to edit though-- if you enter text and press save, it won't save the data. You need to press edit again, and then the prepopulated text will appear and you can edit the validation rule.

To Reproduce Steps to reproduce the behavior:

  1. In the schema editor / Common validation, create a new property.
  2. Press "edit"
  3. Press "edit" again.

Expected behavior Remove the weirdness where you have to press edit twice to work

Screenshots Create new property

Screen Shot 2022-09-16 at 3 35 32 PM

Press edit -- the editing window pops up, but blank

Screen Shot 2022-09-16 at 3 35 37 PM

Press edit again, and the starter text appears

Screen Shot 2022-09-16 at 3 35 47 PM