Skip to content

Commit 8dbdc92

Browse files
authored
Merge pull request #242 from tuttle-dev/copilot/sub-pr-239-another-one
Fix TDropDown.update_value() missing UI refresh call
2 parents 851691a + 5319a88 commit 8dbdc92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tuttle/app/core/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@ def update_dropdown_items(self, items: List[str]):
448448
def update_value(self, new_value: str):
449449
self.drop_down.value = new_value
450450
self.drop_down.error_text = None
451+
try:
452+
self.update()
453+
except RuntimeError:
454+
pass # control not yet mounted
451455

452456
@property
453457
def value(self):

0 commit comments

Comments
 (0)