fix search:
This commit is contained in:
@@ -94,6 +94,8 @@ class Category:
|
||||
self.products_group.controls.clear()
|
||||
self.add_products(buffer)
|
||||
self.products_group.update()
|
||||
self.searchbar.value = ''
|
||||
self.searchbar.update()
|
||||
|
||||
def on_profile_btn_click(self, e):
|
||||
self.page.go('/profil')
|
||||
|
||||
@@ -64,6 +64,7 @@ class Home:
|
||||
self.products_group.controls.clear()
|
||||
self.add_products(buffer)
|
||||
self.page.session.set("search_for", None)
|
||||
self.searchbar.value = ''
|
||||
|
||||
def on_acasa_btn_click(self, e):
|
||||
self.page.go('/')
|
||||
@@ -164,6 +165,8 @@ class Home:
|
||||
self.products_group.controls.clear()
|
||||
self.add_products(buffer)
|
||||
self.products_group.update()
|
||||
self.searchbar.value = ''
|
||||
self.searchbar.update()
|
||||
|
||||
def build(self):
|
||||
return ft.Container(
|
||||
|
||||
Reference in New Issue
Block a user