Skip to content

Commit 35e742b

Browse files
committed
changed typecheck for list value to use isinstance instead of type
1 parent 39a9da4 commit 35e742b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dash/dash.py

+3
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,9 @@ def _layout_value(self):
719719

720720
@layout.setter
721721
def layout(self, value):
722+
if isinstance(value, list):
723+
value = html.Div(value)
724+
722725
_validate.validate_layout_type(value)
723726
self._layout_is_function = callable(value)
724727
self._layout = value

0 commit comments

Comments
 (0)