'<select> tag in svelte doesn't work properly

<select>
    <option value="1">first</option>
    <option value="2">second</option>
    <option value="3">third</option>
    <option value="4">fourth</option>
</select>

I'm using this code to create a test dropdown selection in svelte, this code works in html but not svelte for some reason and I cannot for the life of me figure out why. Clicking the dropdown does nothing.

Edit: As mentioned by people in the comment, apparently this code is correct and should work. I am using a Vite server on an embedded browser in vscode, if that helps clarify the situation.

Any help would be appreciated.



Solution 1:[1]

I figured out what was wrong, apparently the Vite extension in vscode is glitched and dropdown menus simply don't show up in the embedded browser. This code does work and is an extension problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew DaNub