Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with iOS beta 8 suggestions
iOS beta 8 renders a preview of the suggestion that was messing up with text composing in Trix. The problem is that the system to handle "compositionend" events, which relies on deleting the composed text. When that only has one character we default to perform a regular delete. The problem with the new iOS dimmed suggestions is that this matches the interaction of typing in the last character in a suggestion, and it results in Trix wrong deleting legit content when discarding the suggestion. This solution relaxes the condition to rely on the range when there is has a length of 1 when the editor is in composing mode.
- Loading branch information