Skip to content

Commit

Permalink
Merge pull request #1165 from basecamp/bug+safari-autocomplete
Browse files Browse the repository at this point in the history
Fix problem with iOS beta 8 suggestions
  • Loading branch information
jorgemanrubia committed Jul 5, 2024
2 parents 0c79bcb + 2f8c5eb commit db9c35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trix/controllers/level_2_input_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export default class Level2InputController extends InputController {
this.delegate?.inputControllerWillPerformTyping()
}
const perform = () => this.responder?.deleteInDirection(direction)
const domRange = this.getTargetDOMRange({ minLength: 2 })
const domRange = this.getTargetDOMRange({ minLength: this.composing ? 1 : 2 })
if (domRange) {
return this.withTargetDOMRange(domRange, perform)
} else {
Expand Down

0 comments on commit db9c35d

Please sign in to comment.