AllenNeuralDynamics / aind-metadata-entry-js

Metadata entry using javascript
https://metadata-entry.allenneuraldynamics.org
MIT License
1 stars 1 forks source link

Default schema version value is not shown as selected in dropdown UI #124

Closed helen-m-lin closed 7 months ago

helen-m-lin commented 7 months ago

Describe the bug When the user selects any schema type, the latest version is chosen by default and the form is rendered. However, this version value is not shown as selected in the version selection dropdown. It still shows the placeholder "Select Version" text.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://metadata-entry.allenneuraldynamics.org/
  2. Click on 'Select a Schema' dropdown and choose any schema type
  3. Observe that form is displayed with a latest schema version, but this version value is not propagated to the 'Select Version' dropdown.

Expected behavior The default latest version value should also be shown as selected in the version dropdown. For clarity, the placeholder text can be removed, and the dropdowns can have a title text next to or above it to clarify that the dropdowns are for Schema or Version.

Screenshots image

Desktop (please complete the following information):