From 619d12c9d3445e30ae621d4ea971a59eab158ae9 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 8 Mar 2019 12:38:30 -0500 Subject: [PATCH] fix(select): prop value should be string only (#725) --- packages/select/NativeControl.tsx | 2 ++ packages/select/README.md | 2 ++ packages/select/index.tsx | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/select/NativeControl.tsx b/packages/select/NativeControl.tsx index 94f800d80..4b18e9282 100644 --- a/packages/select/NativeControl.tsx +++ b/packages/select/NativeControl.tsx @@ -31,6 +31,7 @@ export interface NativeControlProps extends React.HTMLProps { foundation: MDCSelectFoundation; setRippleCenter: (lineRippleCenter: number) => void; handleDisabled: (disabled: boolean) => void; + value: string; } export default class NativeControl extends React.Component< @@ -49,6 +50,7 @@ export default class NativeControl extends React.Component< }, setRippleCenter: () => {}, handleDisabled: () => {}, + value: '', }; diff --git a/packages/select/README.md b/packages/select/README.md index 779c5840e..6ea1f3d4c 100644 --- a/packages/select/README.md +++ b/packages/select/README.md @@ -76,6 +76,7 @@ class MyApp extends React.Component { ` elements passed as `this.props.children`. If its an array of strings, then the string value will be used as the `label` and `value` of the `