-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Description
downshiftversion: 1.11.0nodeversion: 6.9 (and codesadbox.io, could not find out, what they're using)npm(oryarn) version: yarn 1.1.0 (and whatever codesandbox.io uses)
Problem description:
- Visit this codesandbox
- type text
- move cursor to the left
- type a letter
- the letter will be added at the correct position, but the cursor will move to the end of the input instead of staying where you have typed
Relevant code or config
class Demo extends React.Component {
state = {
inputValue: ""
};
render() {
return (
<div>
<Downshift
onStateChange={data => {
return (
data.hasOwnProperty("inputValue") &&
this.setState({ inputValue: data.inputValue })
);
}}
inputValue={this.state.inputValue}
>
{({ getInputProps }) => (
<div>
<input {...getInputProps()} />
</div>
)}
</Downshift>
</div>
);
}
}