WidgetLibrary SetInputPrompt vs. Client Side Tabs


I realized that if I have an input to be filled with the widget library SetInputPrompt web block in a tab that is not visible in the Style Guide client side tabs, the prompt text is not displayed (it will only be displayed if I place focus on the input and then go out).

I investigated, and the problem comes from the following lines of code in the SetInputPrompt web block javscript:

else if (window.attachEvent)
window.attachEvent('onbeforeunload', beforeunloadFunc);

It seems like IE7 throws the onbeforeunload event when we change tab. I commented this line, and everything looks fine (because the code also executes the necessary cleaning in the onsubmit event). I'll still have to test on IE6.

Best Regards,

Daniel Lourenço