diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2016-10-20 14:31:33 -0500 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-10-20 12:31:33 -0700 |
commit | 6f00e078ec25b274843e74d71ce28e10db34f443 (patch) | |
tree | 4f94fbac9ac00210bdec5a310d9724ae0735dbfc | |
parent | 40659f4331b8c5d017e3d760bf7379e3ed621e62 (diff) | |
download | xamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.tar.gz xamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.tar.bz2 xamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.zip |
[iOS] Entry should correctly update Text when typing aid is used (#401)
* Entry should be able to detect typing aid changes correctly
* Added comment
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs index 2e37a95b..04eb6d4f 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs @@ -106,6 +106,12 @@ namespace Xamarin.Forms.Platform.iOS void OnEditingEnded(object sender, EventArgs e) { + // Typing aid changes don't always raise EditingChanged event + if (Control.Text != Element.Text) + { + ElementController.SetValueFromRenderer(Entry.TextProperty, Control.Text); + } + ElementController.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, false); } |