From 7a8a4944cb79b6d5cb2238e546be2209d65173d2 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 8 Oct 2021 11:30:50 +0100 Subject: [PATCH] ComboBox: Hide active menu when disabled --- modules/juce_gui_basics/widgets/juce_ComboBox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_gui_basics/widgets/juce_ComboBox.cpp b/modules/juce_gui_basics/widgets/juce_ComboBox.cpp index 60a703a3ae..7eafbd3ea3 100644 --- a/modules/juce_gui_basics/widgets/juce_ComboBox.cpp +++ b/modules/juce_gui_basics/widgets/juce_ComboBox.cpp @@ -380,6 +380,9 @@ void ComboBox::resized() void ComboBox::enablementChanged() { + if (! isEnabled()) + hidePopup(); + repaint(); }