ProductiveRage / Bridge.React

Bindings for Bridge.NET for React - write React applications in C#!
MIT License
74 stars 14 forks source link

Fix AutoComplete/AutoFocus/AutoSave prop casing #29

Closed dionrhys closed 7 years ago

dionrhys commented 7 years ago

React wants these props camel-case but the code here was forcing them to lower-case.

Here were the errors that happened before:

Warning: Unknown DOM property autocomplete. Did you mean autoComplete?
    in input (created by ExampleContainer)
    in label (created by ExampleContainer)
    in div (created by ExampleContainer)
    in div (created by ExampleContainer)
    in ExampleContainer  react.js:20483:9
Warning: Unknown DOM property autosave. Did you mean autoSave?
    in input (created by ExampleContainer)
    in label (created by ExampleContainer)
    in div (created by ExampleContainer)
    in div (created by ExampleContainer)
    in ExampleContainer  react.js:20483:9
"Warning: Unknown prop `autofocus` on <input> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in input (created by ExampleContainer)
    in label (created by ExampleContainer)
    in div (created by ExampleContainer)
    in div (created by ExampleContainer)
    in ExampleContainer"