Can't disable dropdown within its event handler

I’ve tried to disable a dropdown menu ($w(‘#selMenu1’).disable():wink: at the end of servicing its event handler with no success. If I add the code in a function called by the handler, it works!
Any hints would be greatly appreciated.

You will need to provide more information. Post the relevant code here - nicely formatted and in a code block so it’s easy to read.

I removed all the code except for the disable line and the dropdown still will not disable when clicked. There are several buttons that DO disable properly inside their event handlers. If I add the disable, say, in any button handler, the dropdown disables properly.

export function selClass1_change(event) {
//Add your code for this event here:

$w('#selClass1').disable(); 

}

To clarify - If I add the DROPDOWN’S disable , say, in any button handler, the dropdown disables properly.