Skip to content

Commit 6cb86ff

Browse files
committed
Remove before_update method from Dropdown
Deleted the before_update method in the Dropdown class, which previously set expand_loose based on expand. This change may address redundant or obsolete logic related to display issues.
1 parent 3c01a4a commit 6cb86ff

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • sdk/python/packages/flet/src/flet/controls/material

sdk/python/packages/flet/src/flet/controls/material/dropdown.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,6 @@ class Dropdown(ConstrainedControl):
349349
[`helper_text`][flet.Dropdown.helper_text].
350350
"""
351351

352-
def before_update(self):
353-
super().before_update()
354-
if isinstance(self.expand, bool):
355-
self.expand_loose = self.expand # to fix a display issue
356-
357352
def __contains__(self, item):
358353
return item in self.options
359354

0 commit comments

Comments
 (0)