Skip to content

Commit

Permalink
Fixed delegate callback on selectedRange did change
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeep committed Jun 27, 2024
1 parent a6ca98a commit 21564e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Proton/Sources/Swift/Core/RichTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ class RichTextView: AutogrowingTextView {
didSet{
if let range = adjustedTextBlockRangeOnSelectionChange(oldRange: oldValue, newRange: selectedRange) {
selectedRange = range
richTextViewDelegate?.richTextView(self, selectedRangeChangedFrom: oldValue, to: selectedRange)
}
richTextViewDelegate?.richTextView(self, selectedRangeChangedFrom: oldValue, to: selectedRange)
}
}

Expand Down

0 comments on commit 21564e9

Please sign in to comment.