In an email TextField if you delete a character placed before of a white space, the cursor should stay in the same position.
In an email TextField if you delete a character that is placed before a white space, the cursor jumps to the beginning of the field.
You can see this issue in the demo TextField page https://material-ui.com/demos/text-fields/

| Tech | Version |
|--------------|---------|
| Material-UI | v3.9.2 |
| Browser | Chrome 71 (In Firefox seems that its working as expected) |
@DaniSomoza Thank, it's a regression of React. https://codesandbox.io/s/xrv5w1j90w. It was introduced between React v16.2.0 and v16.3.0. I'm opening an issue on their side.
The reproduction is as simple as:
import React from "react";
function Yolo() {
const [value, onChange] = React.useState("");
return (
<input
type="email"
value={value}
onChange={event => onChange(event.target.value)}
/>
);
}
export default Yolo;
Ok, I think that you can track: https://github.com/facebook/react/issues/14168.
Most helpful comment
Ok, I think that you can track: https://github.com/facebook/react/issues/14168.