Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make attribute setting explicit. (#4)
With prop_template removing implicit conversations using camelize(:lower), this commit makes the key formatting the responsibility of form_props. To do this, we keep a mapping of html attributes => React attributes as provided by React, and introduce our own with certain options that are needed for frontend components like `include_hidden`. The mapping is used right before we pass the keys to prop_template.
- Loading branch information
Showing
13 changed files
with
562 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.