fix double enter bug
This commit is contained in:
parent
45778192e2
commit
bf0fe6f2d7
@ -1,8 +1,8 @@
|
||||
import json
|
||||
from datetime import datetime
|
||||
from peewee import fn
|
||||
from ..db import db, Task, Category, TaskStatus, SavedSearch
|
||||
from peewee import Case, Value
|
||||
from ..db import db, Task, Category, TaskStatus, SavedSearch
|
||||
|
||||
|
||||
def category_lookup(category):
|
||||
|
@ -360,7 +360,6 @@ class TableEditor(App):
|
||||
# preprocess/validate the field being saved
|
||||
try:
|
||||
update_data[field] = cconf.preprocessor(new_value)
|
||||
# raise Exception(update_data)
|
||||
self.update_item_callback(item_id, **update_data)
|
||||
self.refresh_data()
|
||||
except NotifyValidationError as e:
|
||||
|
@ -91,7 +91,9 @@ class TT(TableEditor):
|
||||
self._load_view(event.value)
|
||||
self.refresh_tasks(restore_cursor=False)
|
||||
else:
|
||||
super().on_input_submitted(event)
|
||||
# https://textual.textualize.io/guide/events/#bubbling
|
||||
# not needed
|
||||
# super().on_input_submitted(event)
|
||||
return
|
||||
|
||||
def refresh_items(self):
|
||||
|
Loading…
Reference in New Issue
Block a user