From 6f00e078ec25b274843e74d71ce28e10db34f443 Mon Sep 17 00:00:00 2001 From: adrianknight89 Date: Thu, 20 Oct 2016 14:31:33 -0500 Subject: [iOS] Entry should correctly update Text when typing aid is used (#401) * Entry should be able to detect typing aid changes correctly * Added comment --- Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Xamarin.Forms.Platform.iOS') 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); } -- cgit v1.2.3