The example below is extracted from the app with a spreadsheet-like UI, where cells become editable upon focus (can be achieved either by tabbing into the cells or clicking). The text in such cell immediately becomes selected.
The bug occurs only in IE11, as the user navigates from one such cell to another by clicking.
Likely related to #19664.
React version: 17.0.1
Steps To Reproduce
- Clone https://github.com/Dremora/react-i11-input-focus-bug
- Install dependencies (
yarn) and start the app (yarn start)
- Open http://localhost:3000 in IE11
- Click on the text saying
hello
- Click on the text saying
world
Link to code example: https://github.com/Dremora/react-i11-input-focus-bug/blob/master/src/App.js
The current behavior
Unspecified error gets logged to the console, followed a few other errors, one of them being Should not already be working error. As this is a React internals error, application stops working. Nothing gets thrown in the user-land code.
The expected behavior
world text gets selected.
The example below is extracted from the app with a spreadsheet-like UI, where cells become editable upon focus (can be achieved either by tabbing into the cells or clicking). The text in such cell immediately becomes selected.
The bug occurs only in IE11, as the user navigates from one such cell to another by clicking.
Likely related to #19664.
React version: 17.0.1
Steps To Reproduce
yarn) and start the app (yarn start)helloworldLink to code example: https://github.com/Dremora/react-i11-input-focus-bug/blob/master/src/App.js
The current behavior
Unspecified errorgets logged to the console, followed a few other errors, one of them beingShould not already be workingerror. As this is a React internals error, application stops working. Nothing gets thrown in the user-land code.The expected behavior
worldtext gets selected.