Skip to content

Commit

Permalink
fix bug input editable
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNorena committed Aug 5, 2018
1 parent b553adb commit f3efcce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/input-item/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default class InputItem extends React.Component<InputItemProps, any> {
onExtraClick,
onErrorClick,
styles,
...restProps,
...restProps
} = this.props;
const { value, defaultValue, style } = restProps;

Expand Down Expand Up @@ -199,6 +199,7 @@ export default class InputItem extends React.Component<InputItemProps, any> {
)
) : null}
<Input
editable={editable}
clearButtonMode={clear ? 'while-editing' : 'never'}
underlineColorAndroid="transparent"
ref={el => (this.inputRef = el)}
Expand Down

0 comments on commit f3efcce

Please sign in to comment.