sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 12 forks source link

EMS: Clear Form doesn't clear the Unit and Incident menus #189

Closed fwextensions closed 2 years ago

fwextensions commented 2 years ago

The current values are left visible, but the form treats them as if they're empty:

image

Seems to be an issue with setting the value from the React side, which doesn't cause the USWDS combox to update. It's not really clear how the two JS environments are supposed to interact.

Also, should these even be comboboxes? Is the user supposed to be able to input any value? A custom value doesn't really stick, currently.

fwextensions commented 2 years ago

It might be worth looking into using this library of React components: https://github.com/trussworks/react-uswds