Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

IE8, addWindowClosingHandler and Calendar.addEventClickHandler.

$
0
0
In IE8, a ClosingEvent appears to be generated when clicking an event in the the month view Calendar.

Code:

        com.google.gwt.user.client.Window.addWindowClosingHandler(new ClosingHandler() {

            @Override
            public void onWindowClosing(ClosingEvent closingEvent) {
            ...
            }
        });

Code:

        addEventClickHandler(new EventClickHandler() {
            @Override
            public void onEventClick(CalendarEventClick event) {
                event.cancel();
                ...
            }
        });

When I click an event in the month view Calendar, both onEventClick and onWindowClosing are invoked.

In Firefox, Chrome and IE11, only the onEventClick is invoked when clicking an event in the the month view Calendar.

SmartClient Version: v9.1p_2015-02-03/Pro Deployment (built 2015-02-03)

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles