Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes some edge cases on entity selection #168
This PR fixes some cases that we've detected in a production application using Draftail.
As you can see some are "null safety" checking. But we've found another issue when the user selected backwards the cursor wasn't right. This caused that when editing some custom entities the user input didn't match the one that we got on the state.
This is my first PR for the project so I hope I didn't forgot anything
I think I ran into similar issues in the past, but was never quite able to reproduce them consistently. Could you say more about the scenarios in which you detected these? Detailed reproduction steps / screen recordings would be even more valuable.