From 0884a3b2577bf94743e8db0734fc148c28eb9373 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 5 Dec 2024 14:37:47 -0700 Subject: [PATCH] refactor(controller): removing console.log lines --- .../src/Autocomplete/AutocompleteController.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/snap-controller/src/Autocomplete/AutocompleteController.ts b/packages/snap-controller/src/Autocomplete/AutocompleteController.ts index 82b4ceaed..f724dc847 100644 --- a/packages/snap-controller/src/Autocomplete/AutocompleteController.ts +++ b/packages/snap-controller/src/Autocomplete/AutocompleteController.ts @@ -220,7 +220,6 @@ export class AutocompleteController extends AbstractController { handlers = { input: { enterKey: async (e: KeyboardEvent): Promise => { - console.log('enter key handler...'); if (e.keyCode == KEY_ENTER) { const input = e.target as HTMLInputElement; let actionUrl = this.store.services.urlManager; @@ -435,7 +434,6 @@ export class AutocompleteController extends AbstractController { } async bind(): Promise { - console.log('binding???'); if (!this.initialized) { await this.init(); } @@ -444,7 +442,6 @@ export class AutocompleteController extends AbstractController { const inputs: NodeListOf = document.querySelectorAll(this.config.selector); inputs.forEach((input) => { - console.log('binding input???', input); input.setAttribute('spellcheck', 'false'); input.setAttribute('autocomplete', 'off'); input.setAttribute('autocorrect', 'off'); @@ -464,9 +461,7 @@ export class AutocompleteController extends AbstractController { const form = input.form; let formActionUrl: string | undefined; - console.log('binding action???', this.config.action); if (this.config.action) { - console.log('binding action???'); this.config.settings?.bind?.submit && input.addEventListener('keydown', this.handlers.input.enterKey); formActionUrl = this.config.action; } else if (form) {