Next.js Discord

Discord Forum

Drop-down Menu Unclickable

Unanswered
Rock Sandpiper posted this in #help-forum
Open in Discord
Rock SandpiperOP
I am building an app using next.js. I create a pop up content which is a modal and I have a drop down. That drop-down is fetching from my library. The data is showing but it is greyed out, I can not click it nor scroll. Anyone knows the fix?

14 Replies

Giant panda
do you have any kind of logic disabling the options? you'll need to share some code for people to be able to help you
@Giant panda do you have any kind of logic disabling the options? you'll need to share some code for people to be able to help you
Rock SandpiperOP
yeah sure, well actually i kinda solve it yesterday with react select since it supports the async function. however i am still strunggling with this page. it does not load.. i am making a trading journal for myself actually. i am facing this context problem
so this is the page where i log my trade. it has that pop up modal to insert it. and that page contains the trade log history
@Rock Sandpiper so this is the page where i log my trade. it has that pop up modal to insert it. and that page contains the trade log history
Saint Hubert Jura Hound
Its, again, impossible to help you with this little information. We cant smell where the error comes from
Rock SandpiperOP
so what file you want to see? you want to see my transaction page code?
Saint Hubert Jura Hound
Wherever youre trying to read the id property of an object. Thats where ur seeing the console error in browser
That object is undefined for some reason. Like the error says. U need to find out why in the related code
Rock SandpiperOP
i honestly dont know the culprit located
Saint Hubert Jura Hound
Welcome to programming. Luckily it can only come from one place though which is any piece of code that you called from the page youre getting the error on..
So go down each code path on that page til u see a place where ur trying to access an objects id property
Then debug that part with console.log
Rock SandpiperOP
yeah, i am new tih next.js. I am vibe coding actually. but i do have a bit of html,css, php, and js knoelwege but not that advance. I can read code. well just understanding the logic by looking at the syntax
Saint Hubert Jura Hound
Youll understand the logic much faster and better if u write it urself
@Saint Hubert Jura Hound Youll understand the logic much faster and better if u write it urself
Rock SandpiperOP
yeah, i dont really have time to read the documentation and s on. since this is not my main job. its just hobby