From 0d0e1b4c10a7bd96f7684b945d4963543c9e6354 Mon Sep 17 00:00:00 2001 From: Divyanshi Pathak Date: Sat, 28 Jun 2025 10:33:02 +0530 Subject: [PATCH 1/2] Update voice search --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index d73d6a1a..740d53dd 100644 --- a/script.js +++ b/script.js @@ -159,7 +159,7 @@ if (SpeechRecognition) { newtranscript = transcript.endsWith('.') ? transcript.slice(0, -1) : transcript; console.log(newtranscript) searchBarInput.value = newtranscript; - filterComponents(); + searchBarInput.dispatchEvent(new Event("input", { bubbles: true })); } } } else { @@ -202,4 +202,4 @@ document.addEventListener("DOMContentLoaded", function () { }); } // If elements are missing, silently do nothing -}); \ No newline at end of file +}); From 07f21b7d0b177383c34fc0cd8c0b5db410d60e56 Mon Sep 17 00:00:00 2001 From: Rakesh Roshan Date: Sat, 28 Jun 2025 22:38:44 +0530 Subject: [PATCH 2/2] Fixed the formatting --- script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 740d53dd..58f79aa9 100644 --- a/script.js +++ b/script.js @@ -159,7 +159,9 @@ if (SpeechRecognition) { newtranscript = transcript.endsWith('.') ? transcript.slice(0, -1) : transcript; console.log(newtranscript) searchBarInput.value = newtranscript; - searchBarInput.dispatchEvent(new Event("input", { bubbles: true })); + searchBarInput.dispatchEvent(new Event("input", { + bubbles: true + })); } } } else { @@ -202,4 +204,4 @@ document.addEventListener("DOMContentLoaded", function () { }); } // If elements are missing, silently do nothing -}); +}); \ No newline at end of file