Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 161b85e

Browse files
Commenting out event subscriptions
1 parent 9d2ee84 commit 161b85e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/GitHub.UI/Controls/AutoCompleteBox/AutoCompleteBox.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ void UpdateTextBox(IAutoCompleteTextInput value)
632632
if (textInput != null)
633633
{
634634
UnsubscribeToEvent("SelectionChanged");
635-
UnsubscribeToEvent("OnTextBoxTextChanged");
635+
// UnsubscribeToEvent("OnTextBoxTextChanged");
636636
}
637637

638638
textInput = value;
@@ -646,18 +646,18 @@ void UpdateTextBox(IAutoCompleteTextInput value)
646646
supportsShortcutOriginalValue = shortcutContainer.SupportsKeyboardShortcuts;
647647
}
648648

649-
SubscribeToEvent("OnTextBoxTextChanged", ObserveTextBoxChanges()
650-
.Subscribe(shouldPopulate =>
651-
{
652-
if (shouldPopulate)
653-
{
654-
PopulateDropDown();
655-
}
656-
else
657-
{
658-
DismissDropDown();
659-
}
660-
}));
649+
// SubscribeToEvent("OnTextBoxTextChanged", ObserveTextBoxChanges()
650+
// .Subscribe(shouldPopulate =>
651+
// {
652+
// if (shouldPopulate)
653+
// {
654+
// PopulateDropDown();
655+
// }
656+
// else
657+
// {
658+
// DismissDropDown();
659+
// }
660+
// }));
661661

662662
if (Text != null)
663663
{
@@ -777,7 +777,7 @@ public override void OnApplyTemplate()
777777
{
778778
if (TextBox != null)
779779
{
780-
UnsubscribeToEvent("PreviewKeyDown");
780+
// UnsubscribeToEvent("PreviewKeyDown");
781781
}
782782

783783
if (DropDownPopup != null)
@@ -811,7 +811,7 @@ public override void OnApplyTemplate()
811811

812812
if (TextBox != null)
813813
{
814-
SubscribeToEvent("PreviewKeyDown", TextBox.PreviewKeyDown.Subscribe(OnTextBoxPreviewKeyDown));
814+
// SubscribeToEvent("PreviewKeyDown", TextBox.PreviewKeyDown.Subscribe(OnTextBoxPreviewKeyDown));
815815
}
816816

817817
Interaction.OnApplyTemplateBase();

0 commit comments

Comments
 (0)