feat(tasks): clear text box when entering a task

This commit is contained in:
Elian Doran 2025-02-23 21:39:05 +02:00
parent 24c02e013b
commit 31fcf7ea60
No known key found for this signature in database

View File

@ -79,6 +79,7 @@ export default class TaskListWidget extends TypeWidget {
this.$addNewTask.on("keydown", (e) => {
if (e.key === "Enter") {
this.#createNewTask(String(this.$addNewTask.val()));
this.$addNewTask.val("");
}
});