Fix updating Entry values

This commit is contained in:
Frank A. Krueger 2017-12-10 20:28:05 -08:00
parent a211e8d4f8
commit f0ed625159
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ namespace Ooui.Forms.Renderers
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);
if (Control.Value != Element.Text) {
ElementController.SetValueFromRenderer (Entry.TextProperty, Control.Value);
}
ElementController.SetValueFromRenderer (VisualElement.IsFocusedPropertyKey, false);