Skip to content

Commit

Permalink
Continuous slider with LoV (#1750)
Browse files Browse the repository at this point in the history
resolves #1733

Co-authored-by: Fred Lefévère-Laoide <[email protected]>
  • Loading branch information
FredLL-Avaiga and Fred Lefévère-Laoide authored Sep 5, 2024
1 parent 880f343 commit c12c928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions taipy/gui/_renderers/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion taipy/gui/_renderers/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
]
Expand Down

0 comments on commit c12c928

Please sign in to comment.