Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

todo: Fix bug preventing toggling todos with content in composebox.

N-Shar-ma88603bd34b19
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 5055094f205..6599fb5c925 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -149,6 +149,14 @@ export function initialize() {
return true;
}
+ // Allow toggling of tasks in todo widget
+ if (
+ $target.is(".todo-widget label.checkbox") ||
+ $target.parents(".todo-widget label.checkbox").length > 0
+ ) {
+ return true;
+ }
+
return false;
}
@@ -1000,6 +1008,7 @@ export function initialize() {
// filters or search widgets won't unnecessarily close
// compose.
!$(e.target).closest("input").length &&
+ !$(e.target).closest(".todo-widget label.checkbox").length &&
!$(e.target).closest("textarea").length &&
!$(e.target).closest("select").length &&
// Clicks inside an overlay, popover, custom