diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-11-16 14:59:21 -0600 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-16 12:59:21 -0800 |
commit | 281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (patch) | |
tree | ea3edbbb0a86e8806d2955d5473c4e0c994c0441 /Xamarin.Forms.Platform.iOS | |
parent | eb243bcea492088f07934409f047d05ecd2aea45 (diff) | |
download | xamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.tar.gz xamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.tar.bz2 xamarin-forms-281bfa2b0a6de05130b87ad5c25f9bf8b05f876c.zip |
[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.cs | 3 |
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 49126dad..8819ba33 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(); } |