Skip to content

Commit

Permalink
fix(input): fixed double tab for Input component for react-native-web (
Browse files Browse the repository at this point in the history
  • Loading branch information
sayres authored Mar 22, 2022
1 parent cebfa4f commit d8dcf05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
export interface TouchableWithoutFeedbackProps extends TouchableOpacityProps {
useDefaultHitSlop?: boolean;
children?: React.ReactNode;
focusable?: boolean;
}

export type TouchableWithoutFeedbackElement = React.ReactElement<TouchableWithoutFeedbackProps>;
Expand Down
5 changes: 3 additions & 2 deletions src/components/ui/input/input.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export class Input extends React.Component<InputProps> implements WebEventRespon
<TouchableWithoutFeedback
testID={testID}
style={evaStyle.container}
focusable={false}
onPress={this.focus}>
<FalsyText
style={[evaStyle.label, styles.label]}
Expand All @@ -288,8 +289,8 @@ export class Input extends React.Component<InputProps> implements WebEventRespon
component={accessoryRight}
/>
</View>
<FalsyText
style={[evaStyle.captionLabel, styles.captionLabel]}
<FalsyText
style={[evaStyle.captionLabel, styles.captionLabel]}
component={caption}
/>
</TouchableWithoutFeedback>
Expand Down

0 comments on commit d8dcf05

Please sign in to comment.