This projects demonstrates a crash in Safari when adding white-space: nowrap
to an element in DraftJS. A non-nowrap example located at the top will work correctly, while the bottom one will throw an error.
yarn install
yarn start
- Navigate to http://localhost:3000 in Safari
- Use Safari
- Type a non-space character in the lower input box
- Type a space into the lower input box
The space will be added, but when the selection state is updated, the app will crash.