Skip to content

Commit

Permalink
fix Disable changing suggestions inside search box #13
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed May 29, 2023
1 parent b8fcc09 commit 833dd7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/search/composables/useRandomPlaceholder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ref } from "vue";
import { useIntervalFn } from "@vueuse/core";
// import { useIntervalFn } from "@vueuse/core";

const placeholders = [
"cat",
Expand Down Expand Up @@ -40,12 +40,12 @@ export function useRandomPlaceholder() {
placeholders[Math.floor(Math.random() * placeholders.length)]
);

const updatePlaceholder = () => {
const index = Math.floor(Math.random() * placeholders.length);
placeholder.value = placeholders[index];
};
// const updatePlaceholder = () => {
// const index = Math.floor(Math.random() * placeholders.length);
// placeholder.value = placeholders[index];
// };

useIntervalFn(updatePlaceholder, 1500);
// useIntervalFn(updatePlaceholder, 1500);

return { placeholder };
}

0 comments on commit 833dd7d

Please sign in to comment.