Linking components doesnt work

Im very new to figma, when i try to make a drop down menu and connecting the components, this happens
image

im using a tutorial and it shouldn’t be happening here in my case, and i don’t know how to solve it.