diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py index d54d4578..7e122985 100644 --- a/src/tabs/basetabs.py +++ b/src/tabs/basetabs.py @@ -290,7 +290,8 @@ class Tab(object): else: arg = xhtml.clean_text_simple(arg) if func: - self.input.reset_completion() + if hasattr(self.input, "reset_completion"): + self.input.reset_completion() func(arg) return True else: