Skip to content

Commit

Permalink
Fixed a bug that cannot render form controls in extra small size
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 25, 2019
1 parent d94436d commit 55ea91d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,27 @@ const FormGroup = styled.div`
Name | Type | Default | Description
:--- | :--- | :------ | :----------
tag | element | 'div' |
lg | boolean | false |
md | boolean | true |
sm | boolean | false |
lg | boolean | |
md | boolean | | Defaults to 'md' if nothing is specified.
sm | boolean | |

#### Input

Name | Type | Default | Description
:--- | :--- | :------ | :----------
tag | element | 'input' |
lg | boolean | false |
md | boolean | true |
sm | boolean | false |
lg | boolean | |
md | boolean | | Defaults to 'md' if nothing is specified.
sm | boolean | |

#### Select

Name | Type | Default | Description
:--- | :--- | :------ | :----------
tag | element | 'select' |
lg | boolean | false |
md | boolean | true |
sm | boolean | false |
lg | boolean | |
md | boolean | | Defaults to 'md' if nothing is specified.
sm | boolean | |

#### Textarea

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React Form Control v1.0.0</title><link href="main.css" rel="stylesheet"></head><body><div id="rsg-root"></div><script src="build/bundle.5b79b1ec.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React Form Control v1.0.0</title><link href="main.css" rel="stylesheet"></head><body><div id="rsg-root"></div><script src="build/bundle.2e26e54c.js"></script></body></html>
3 changes: 0 additions & 3 deletions src/FormControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const propTypes = {

const defaultProps = {
tag: 'div',
lg: false,
md: true,
sm: false,
};

const FormControl = ({
Expand Down

0 comments on commit 55ea91d

Please sign in to comment.