fix search bug
This commit is contained in:
parent
5a0c6abad5
commit
45778192e2
@ -323,7 +323,7 @@ class TableEditor(App):
|
||||
item = self.get_item_callback(item_id)
|
||||
|
||||
# found at https://github.com/Textualize/textual/discussions/1654
|
||||
self._drirefresh_data.stop_application_mode()
|
||||
self._driver.stop_application_mode()
|
||||
new_text = get_text_from_editor(item.text)
|
||||
self.refresh()
|
||||
self._driver.start_application_mode()
|
||||
@ -334,7 +334,7 @@ class TableEditor(App):
|
||||
def on_input_submitted(self, event: Input.Submitted):
|
||||
self._hide_input()
|
||||
if self.mode == "search":
|
||||
self.refresh_data = event.value
|
||||
self.search_query = event.value
|
||||
self.refresh_data(restore_cursor=False)
|
||||
elif self.mode == "filter":
|
||||
cconf = self._active_column_config()
|
||||
|
Loading…
Reference in New Issue
Block a user