Browse Source
Merge pull request #11975 from Gillibald/deleteSelectionOnCompositionStart
Fix PresenterPropertyChanged add handler
release/11.0.0-rc2.1
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
src/Avalonia.Controls/TextBox.cs
|
|
|
@ -812,14 +812,14 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
base.OnAttachedToVisualTree(e); |
|
|
|
|
|
|
|
if (IsFocused) |
|
|
|
if (_presenter != null) |
|
|
|
{ |
|
|
|
if(_presenter != null) |
|
|
|
if (IsFocused) |
|
|
|
{ |
|
|
|
_presenter.ShowCaret(); |
|
|
|
|
|
|
|
_presenter.PropertyChanged += PresenterPropertyChanged; |
|
|
|
} |
|
|
|
|
|
|
|
_presenter.PropertyChanged += PresenterPropertyChanged; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|