Upload component issue

Hello,

I am porting my project from Vaadin 6.xx to Vaadin 7 (using 7.3.9). My code creates simple window containing Upload component in immediate mode. I also added another “Cancel” button used for closing window. So, I have window with two buttons: “Upload” and “Cancel” inserted in HorizontalLayout. My problem is when I click on “Cancel” button file choosing dialog appers, as if I click “Upload” button. The same code in Vaadin 6 works as expected. Can you help me?

Thank you