summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2016-11-16 20:59:21 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-11-16 20:59:21 (GMT)
commit281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (patch)
treeea3edbbb0a86e8806d2955d5473c4e0c994c0441 /Xamarin.Forms.Platform.iOS
parenteb243bcea492088f07934409f047d05ecd2aea45 (diff)
downloadxamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.zip
xamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.tar.gz
xamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.tar.bz2
[iOS] Update Editor text from autocorrect when losing focus (#535)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs
index 49126da..8819ba3 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs
@@ -99,6 +99,9 @@ namespace Xamarin.Forms.Platform.iOS
void OnEnded(object sender, EventArgs eventArgs)
{
+ if (Control.Text != Element.Text)
+ ElementController.SetValueFromRenderer(Editor.TextProperty, Control.Text);
+
Element.SetValue(VisualElement.IsFocusedPropertyKey, false);
Element.SendCompleted();
}