Opened 12 years ago
Last modified 11 years ago
#9958 closed Bug
Press ok button will trigger onbeforeunload event in popup-dialog on ie9 — at Initial Version
Reported by: | culaido | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.2.1 |
Component: | UI : Dialogs | Version: | 4.0 |
Keywords: | IE | Cc: |
Description
In my code,
I set a listener for beforeunload event to prevent user close browser once they do the modification on the form.
ex:
//jQuery 1.9.0 $(window).bind('beforeunload', function(e){ // do some check .... return 'beforeunload'; });
But IE9 fires beforeunload event while user press ok button in popup-dialog (link, image ...etc), so, it causes the error flow in my code.
Is anyway to avoid it?