Skip to content

Commit

Permalink
Android: Fix ending a composition by moving the cursor to existing text
Browse files Browse the repository at this point in the history
The next compositionstart can come before the mutation so `didInput` needs to be flipped back to avoid handling it.
  • Loading branch information
javan committed Mar 1, 2018
1 parent 6ef9bbe commit 0754994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trix/controllers/input/composition_input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Trix.CompositionInput extends Trix.BasicObject
@forgetPlaceholder()

if @canApplyToDocument()
@setInputSummary(preferDocument: true)
@setInputSummary(preferDocument: true, didInput: false)
@delegate?.inputControllerWillPerformTyping()
@responder?.setSelectedRange(@range)
@responder?.insertString(@data.end)
Expand Down

0 comments on commit 0754994

Please sign in to comment.