Hide Dropdown Menu on Click

Hi I would like the dropdown menu to disappear as soon as one of the menu items are clicked. Ho w can I do that?
Thanks in advance!

Hi,

Select the dropdown in the editor, and in the property sheet add an onChange event. In the code block that appears in the code page, issue the hide command.

export function dropdown1_change(event) { 
    $w('#dropdown1').hide();
}

There doesnt appear to be a way to add an onChange event. All i get is onViewportEnter, onViewportLeave, onMouseIn and onMouseOut.