diff --git a/taipy/gui/_renderers/builder.py b/taipy/gui/_renderers/builder.py index b1221fae68..2fe4ae499b 100644 --- a/taipy/gui/_renderers/builder.py +++ b/taipy/gui/_renderers/builder.py @@ -974,9 +974,10 @@ def set_attributes(self, attributes: t.List[tuple]): # noqa: C901 var_type = _TaipyToJson if var_type == PropertyType.boolean: def_val = _get_tuple_val(attr, 2, False) - val = self.__get_boolean_attribute(attr[0], def_val) - if val != def_val: - self.set_boolean_attribute(attr[0], val) + if isinstance(def_val, bool) or self.__attributes.get(attr[0], None) is not None: + val = self.__get_boolean_attribute(attr[0], def_val) + if val != def_val: + self.set_boolean_attribute(attr[0], val) elif var_type == PropertyType.dynamic_boolean: self.__set_dynamic_bool_attribute( attr[0], diff --git a/taipy/gui/_renderers/factory.py b/taipy/gui/_renderers/factory.py index 0322a4fa77..20c49cc75d 100644 --- a/taipy/gui/_renderers/factory.py +++ b/taipy/gui/_renderers/factory.py @@ -484,7 +484,7 @@ class _Factory: ("orientation",), ("width", PropertyType.string, "300px"), ("on_change", PropertyType.function), - ("continuous", PropertyType.boolean, True), + ("continuous", PropertyType.boolean, None), ("lov", PropertyType.lov), ("change_delay", PropertyType.number, gui._get_config("change_delay", None)), ]