From df80971eb052019df030c883d81bb26ac1d96082 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Thu, 19 Oct 2017 09:56:53 -0500 Subject: [PATCH] Revert "fix(): check if values are undef before passing down to input." This reverts commit 8b7038fde79bb9267ab7c296150f7839ee8cc9b4. --- packages/core/src/components/input/input.tsx | 60 ++++++++------------ 1 file changed, 25 insertions(+), 35 deletions(-) diff --git a/packages/core/src/components/input/input.tsx b/packages/core/src/components/input/input.tsx index 502c85ad09..75812dcc12 100644 --- a/packages/core/src/components/input/input.tsx +++ b/packages/core/src/components/input/input.tsx @@ -318,14 +318,6 @@ export class Input implements InputComponent { return (this.value !== null && this.value !== undefined && this.value !== ''); } - reduceUndefProps(props: { [ key: string]: any}) { - return Object.keys(props).reduce((final, propName) => { - if (props[propName] != null) { - final[propName] = props[propName]; - } - return final; - }, {} as { [key: string]: any}); - } protected render() { const themedClasses = createThemedClasses(this.mode, this.color, 'text-input'); @@ -334,37 +326,35 @@ export class Input implements InputComponent { return [ ,