Select and ValueChangeListener()

I have a simple Select object with a ValueChangeListener. I want the actions in the listener to be executed immediately when a new option is selected. However, right now, the method isn’t called until the next time the drop-down arrow is clicked. What’s the reason for this? How can I change it? It seems like a really counterintuitive moment to have the listener method called.


style = new Select("Style:");
...
style.addListener(new Property.ValueChangeListener() {
	@Override
	public void valueChange(ValueChangeEvent event) {
		log.info("Style selection changed");
		//actions here
		
});

Use [tt]
setImmediate(true)
[/tt] for the Select.

Cool thanks!