3d ago (edited) in Help
Code not working after moving to component
(Solved)
Including a few pictures. Doesn't make sense to me and looking for any input.
When I click on my days for chart selection they collapse. While refactoring I decided to turn this into a component just for the sake of cleaning it up. However no matter what I do when I use MainGraphDaySelection the buttons stay on top of one another even when I have collapsed hardcoded as "false".
Any advice on what I should look at?
The third picture is what I expect them to look like when it's false. However they are just stacked on top of one another when I swap to the component in the 2nd picture.
When I console.log "collapsed" inside the component it will show false but it's not translating anything. Why would it work outside the component but not inside?
4
8 comments
Bret Miller
6
Code not working after moving to component
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by