Skip to content

Commit 84536fe

Browse files
committed
changed typecheck for list value to use isinstance instead of type
1 parent 3c43d95 commit 84536fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dash/dash.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,9 @@ def _layout_value(self):
634634

635635
@layout.setter
636636
def layout(self, value):
637+
if isinstance(value, list):
638+
value = html.Div(value)
639+
637640
_validate.validate_layout_type(value)
638641
self._layout_is_function = callable(value)
639642
self._layout = value

0 commit comments

Comments
 (0)