From 507c2d121d51568b548863cc1ae15afe89b650bb Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Sun, 6 Oct 2019 18:25:21 +0200 Subject: [PATCH] Fix deprecated ctor --- XF.Material/UI/MaterialTextField.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XF.Material/UI/MaterialTextField.xaml.cs b/XF.Material/UI/MaterialTextField.xaml.cs index c6bc429c..4bf2f781 100644 --- a/XF.Material/UI/MaterialTextField.xaml.cs +++ b/XF.Material/UI/MaterialTextField.xaml.cs @@ -1262,7 +1262,7 @@ private void OnTextChanged(string text) { var selectedChoice = GetSelectedChoice(_selectedIndex); SelectedChoice = selectedChoice; - ChoiceSelected?.Invoke(this, new SelectedItemChangedEventArgs(selectedChoice)); + ChoiceSelected?.Invoke(this, new SelectedItemChangedEventArgs(selectedChoice, _selectedIndex)); ChoiceSelectedCommand?.Execute(selectedChoice); } else if (InputType == MaterialTextFieldInputType.Choice && string.IsNullOrEmpty(text))