fix search bug

This commit is contained in:
James Turk 2025-01-06 18:16:07 -06:00
parent 5a0c6abad5
commit 45778192e2

View File

@ -323,7 +323,7 @@ class TableEditor(App):
item = self.get_item_callback(item_id) item = self.get_item_callback(item_id)
# found at https://github.com/Textualize/textual/discussions/1654 # 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) new_text = get_text_from_editor(item.text)
self.refresh() self.refresh()
self._driver.start_application_mode() self._driver.start_application_mode()
@ -334,7 +334,7 @@ class TableEditor(App):
def on_input_submitted(self, event: Input.Submitted): def on_input_submitted(self, event: Input.Submitted):
self._hide_input() self._hide_input()
if self.mode == "search": if self.mode == "search":
self.refresh_data = event.value self.search_query = event.value
self.refresh_data(restore_cursor=False) self.refresh_data(restore_cursor=False)
elif self.mode == "filter": elif self.mode == "filter":
cconf = self._active_column_config() cconf = self._active_column_config()