(cherry picked from commit 96fdb030ecbc3aa93041c4cc752d9fc5336e0c67)
@@ -182,7 +182,7 @@ void Tabs::_gui_input(const Ref<InputEvent> &p_event) {
}
- if (max_drawn_tab <= 0) {
+ if (tabs.empty()) {
// Return early if there are no actual tabs to handle input for.
return;