Next js miss behave with million js
Unanswered
wWHYSOSERIOUSs posted this in #help-forum
Onchange is not getting triggered in input field
20 Replies
idk wtf is wrong with my react code
the one change is not firing
this is my state
its working but not inside this component that im calling inside a modal , why is that ?
<input type="text" className="" value={funds} onChange={(e) => console.log(e)} /> the one change is not firing
this is my state
const [funds, setFunds] = useState(0)its working but not inside this component that im calling inside a modal , why is that ?
this is code
the input here is working fine and onChange is getting triggered
the input here is working fine and onChange is getting triggered
but u have another input which is exactly the same inside the comnponent at line 221
the problem here is the onChange is nto getting triggered
prolly million js fault 🤷â€â™‚ï¸
is there any issue from the code's perspective ?
I don't think so, this is client component right?
we aer using the pages directory so i dont thing client and server matters but yes the next js version is 13.5.6
im not using "use client" cuz this is a pages directory , i hope im right
?
oh, try removing node_modules, .next, package-lock.json, and restart again.
alr
@wWHYSOSERIOUSs im not using "use client" cuz this is a pages directory , i hope im right
yeah, no need for that in pages dir
ty for help let me try it
â¤ï¸
sure ðŸ‘
i didnt work
but after removing millon
things worked
but i guess i wont be able to remove million js