Skip to content

Commit 705bf0f

Browse files
committed
Fix draggable.content_when_dragging
1 parent e21c6bf commit 705bf0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sdk/python/flet/draggable.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ def _get_children(self):
4747
if self.__content:
4848
self.__content._set_attr_internal("n", "content")
4949
children.append(self.__content)
50-
if self.__content_feedback:
51-
self.__content_feedback._set_attr_internal("n", "content_when_dragging")
52-
children.append(self.__content_feedback)
50+
if self.__content_when_dragging:
51+
self.__content_when_dragging._set_attr_internal(
52+
"n", "content_when_dragging"
53+
)
54+
children.append(self.__content_when_dragging)
5355
if self.__content_feedback:
5456
self.__content_feedback._set_attr_internal("n", "content_feedback")
5557
children.append(self.__content_feedback)

0 commit comments

Comments
 (0)