Dropdown .value setting not working?

I can set the value of the dropdown’s item selection to -1 (to select nothing) via the inspector but when I do it via code

soemdropdownMenu.value = -1;

it sets it to zero.

Is this a bug or intended?

Is there a way to reset and not select any items with unity’s drop down?

Well I found a way to deselect all elements without destroying and creating the gameobject to have it load -1 from the prefab.

I basically had to trick unity into thinking there was a third element to set the value to 3, otherwise it wouldn’t except any values that didn’t have items to them.