remoteoss / json-schema-form

https://json-schema-form.vercel.app
MIT License
85 stars 6 forks source link

Rename `value` -> `forcedValue` #66

Closed brennj closed 6 months ago

brennj commented 7 months ago

We added the custom attribute value, which has some problems:

Bug: We set it when const and default exist, but we do not check if both are equal (they must).

API: The word itself clashes with native HTML attribute (value) which can create confusing in the UI integration, cause unexpected bugs with a field stuck in a value.

This PR names it from value to forcedValue

paulacarneiro commented 7 months ago

Tested this with different field types and it's working well 🙌🏼