rjsf-team/react-jsonschema-form

<title> disable SUBMIT button when no changes AND handle units of measure

Open

#4098 aperta il 21 feb 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (2136 fork)batch import
featurehelp wanted

Metriche repository

Star
 (13.175 star)
Metriche merge PR
 (Merge medio 3g 17h) (32 PR mergiate in 30 g)

Descrizione

Prerequisites

What theme are you using?

mui

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

disable submit when no changes

this could be a global prop on the Form, that upon first submit, the form memorizes the formData upon submit and disables submit button if the formData comes back to the last submitted value

--> related feature: add a RESET button to reset to the latest submtited value (or default initial values in case no submission yet)

UoMs

it would be nice if the json schema could be extended to support unit of measure for the single params, this could be particularly helpful for currency values, but not only that.

in particular in MUI would be nice to use a "endAdornment" in the input field that includes the unit of measure.

--> related feature: add uspport for currency formatting widget using 2 decimal places and tousands comma/point separator

Describe alternatives you've considered

No response

Guida contributor