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.

input_pill: Remove incorrect $ prefix from non-jQuery variable.

Anders Kaseorg4beea6c2104a
diff --git a/web/src/input_pill.ts b/web/src/input_pill.ts
index a0e9f540dd9..9fa5e296434 100644
--- a/web/src/input_pill.ts
+++ b/web/src/input_pill.ts
@@ -435,8 +435,8 @@ export function create<T>(opts: InputPillCreateOptions<T>): InputPillContainer<T
});
store.$parent.on("copy", ".pill", (e) => {
- const $element = e.currentTarget as HTMLElement;
- const {item} = funcs.getByElement($element)!;
+ const element: HTMLElement = e.currentTarget;
+ const {item} = funcs.getByElement(element)!;
(e.originalEvent as ClipboardEvent).clipboardData?.setData(
"text/plain",
store.get_text_from_item(item),