summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-10-20 19:31:33 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-10-20 19:31:33 (GMT)
commit6f00e078ec25b274843e74d71ce28e10db34f443 (patch)
tree4f94fbac9ac00210bdec5a310d9724ae0735dbfc /Xamarin.Forms.Platform.iOS
parent40659f4331b8c5d017e3d760bf7379e3ed621e62 (diff)
downloadxamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.zip
xamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.tar.gz
xamarin-forms-6f00e078ec25b274843e74d71ce28e10db34f443.tar.bz2
[iOS] Entry should correctly update Text when typing aid is used (#401)
* Entry should be able to detect typing aid changes correctly * Added comment
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs6
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 2e37a95..04eb6d4 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);
}