-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Select): inline prop showed the input two times
- Loading branch information
1 parent
f3d6530
commit b89f8c6
Showing
8 changed files
with
65 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
## Use with React Final Form or Redux Form | ||
## Use with React Final Form (Redux form) | ||
|
||
Use a container with a .wfp--radio-button-group className instead | ||
Add `controlled={false}` to allow final-form to hand the state. | ||
|
||
```js | ||
<RadioButtonGroup | ||
controlled={false} | ||
labelText="Tracking frequency" | ||
helperText="How often the position will be updated"> | ||
<Field | ||
component={ReduxFormWrapper} | ||
inputComponent={RadioButton} | ||
id="radioButton-1" | ||
name="radioButton" | ||
value={5} | ||
labelText="Radiobutton 1" | ||
type="radio" | ||
/> | ||
<Field | ||
component={ReduxFormWrapper} | ||
inputComponent={RadioButton} | ||
id="radioButton-2" | ||
name="radioButton" | ||
value={10} | ||
labelText="Radiobutton 2" | ||
type="radio" | ||
/> | ||
</RadioButtonGroup> | ||
``` |
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
File renamed without changes.
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
File renamed without changes.