From ae578882ea72d4b99ec0d75466370839b0c87614 Mon Sep 17 00:00:00 2001 From: Droplet <51135229+droplet-tech@users.noreply.github.com> Date: Fri, 4 Mar 2022 15:22:55 +0000 Subject: [PATCH 1/2] Allow for inputProps.style to take effect This will allow better flexibility for users to allow the parent component to have final say in the style when needed. For example: { "resize": "auto" } for TextArea in web --- src/components/primitives/Input/InputBase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/primitives/Input/InputBase.tsx b/src/components/primitives/Input/InputBase.tsx index d6f77c0a7..a3beee25c 100644 --- a/src/components/primitives/Input/InputBase.tsx +++ b/src/components/primitives/Input/InputBase.tsx @@ -138,7 +138,7 @@ const InputBase = ( } : {})} ref={mergeRefs([ref, _ref, wrapperRef])} - style={Platform.OS === 'web' ? { outline: 'none' } : {}} + style={[Platform.OS === 'web' ? { outline: 'none' } : {}, inputProps.style]} /> ); }; From 8eca837d501ffd536e8abf7af184173762510e39 Mon Sep 17 00:00:00 2001 From: Droplet <51135229+droplet-tech@users.noreply.github.com> Date: Fri, 4 Mar 2022 15:40:37 +0000 Subject: [PATCH 2/2] Update InputBase.tsx --- src/components/primitives/Input/InputBase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/primitives/Input/InputBase.tsx b/src/components/primitives/Input/InputBase.tsx index a3beee25c..67400654b 100644 --- a/src/components/primitives/Input/InputBase.tsx +++ b/src/components/primitives/Input/InputBase.tsx @@ -138,7 +138,7 @@ const InputBase = ( } : {})} ref={mergeRefs([ref, _ref, wrapperRef])} - style={[Platform.OS === 'web' ? { outline: 'none' } : {}, inputProps.style]} + style={[Platform.OS === 'web' ? { outline: 'none' } : {}, props.style]} /> ); };