diff options
author | 2019-03-19 16:08:17 +0100 | |
---|---|---|
committer | 2019-03-19 16:08:17 +0100 | |
commit | b2ad181c2f3a66b9a200fef2038253a9547ebe14 (patch) | |
tree | 9c3a917aa8b04b4811ff1fdb146ffb4afaf6ceb4 | |
parent | Add support for input type=number (diff) | |
download | ferdium-app-b2ad181c2f3a66b9a200fef2038253a9547ebe14.tar.gz ferdium-app-b2ad181c2f3a66b9a200fef2038253a9547ebe14.tar.zst ferdium-app-b2ad181c2f3a66b9a200fef2038253a9547ebe14.zip |
skip label wrapper when showLabel = false
-rw-r--r-- | packages/forms/src/label/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/forms/src/label/index.tsx b/packages/forms/src/label/index.tsx index 36fcfbedf..590270a06 100644 --- a/packages/forms/src/label/index.tsx +++ b/packages/forms/src/label/index.tsx | |||
@@ -26,6 +26,8 @@ class LabelComponent extends Component<ILabel> { | |||
26 | htmlFor, | 26 | htmlFor, |
27 | } = this.props; | 27 | } = this.props; |
28 | 28 | ||
29 | if (!showLabel) return children; | ||
30 | |||
29 | return ( | 31 | return ( |
30 | <label | 32 | <label |
31 | className={classnames({ | 33 | className={classnames({ |