aboutsummaryrefslogtreecommitdiff
path: root/src/app/kdrama/components
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-07 10:09:08 +0530
committerreal-zephex <[email protected]>2024-05-07 10:09:08 +0530
commit276960e86efb95799c903a1d78f2d3642835062a (patch)
treef6c596e90836b26ce2a0c7e66f5a001bc012a49a /src/app/kdrama/components
parentsmall fixes and shit (diff)
downloaddramalama-276960e86efb95799c903a1d78f2d3642835062a.tar.xz
dramalama-276960e86efb95799c903a1d78f2d3642835062a.zip
well, I tried something
Diffstat (limited to 'src/app/kdrama/components')
-rw-r--r--src/app/kdrama/components/search.jsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/kdrama/components/search.jsx b/src/app/kdrama/components/search.jsx
index f44e4bb..1d1b93b 100644
--- a/src/app/kdrama/components/search.jsx
+++ b/src/app/kdrama/components/search.jsx
@@ -21,13 +21,20 @@ export default function DramaSearch() {
setInfoTitle(data);
};
+ const fetch_every_title = async (title) => {
+ FetchSearchTitle(title);
+ };
+
return (
<div className={styles.SearchContainer}>
<div className={styles.Search}>
<FaSearch color="white" size={16} />
<input
placeholder="Search for drama"
- onChange={(event) => setTitle(event.target.value)}
+ onChange={(event) => {
+ setTitle(event.target.value);
+ fetch_every_title(title);
+ }}
onKeyDown={async (e) => {
if ((e.key === "Enter" || e.code === 13) && title) {
await handleSearch(e.target.value);