mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
feat(tasks): allow only one editable section at one time
This commit is contained in:
parent
06831ddc76
commit
84e8559401
@ -114,6 +114,11 @@ export default class TaskListWidget extends TypeWidget {
|
||||
});
|
||||
|
||||
this.$taskContainer.on("click", "li", (e) => {
|
||||
// Clear existing edit containers.
|
||||
const $existingContainers = this.$taskContainer.find(".edit-container");
|
||||
$existingContainers.html("");
|
||||
|
||||
// Add the new edit container.
|
||||
const $target = $(e.target);
|
||||
const $editContainer = $target.find(".edit-container");
|
||||
$editContainer.html(buildEditContainer());
|
||||
|
Loading…
x
Reference in New Issue
Block a user