Skip to content

Commit

Permalink
disable delay for now
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 23, 2024
1 parent e304eb3 commit b5fe774
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions assets/js/hooks/events/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ export function input(event: KeyboardEvent) {
const node = target.parentNode as HTMLDivElement;
const { uuid, content } = getNodeData(node);

clearTimeout(watchdog);
watchdog = setTimeout(() => {
this.pushEventTo(this.el.phxHookId, "save", { uuid, content });
}, watchdogInterval);
this.pushEventTo(this.el.phxHookId, "save", { uuid, content });
//clearTimeout(watchdog);
//watchdog = setTimeout(() => {
// this.pushEventTo(this.el.phxHookId, "save", { uuid, content });
//}, watchdogInterval);
}

export function keydown(event: KeyboardEvent) {
Expand Down

0 comments on commit b5fe774

Please sign in to comment.