Completed
Last Updated: 10 May 2016 15:44 by ADMIN
Yevhen
Created on: 13 Feb 2013 12:55
Category: Kendo UI for jQuery
Type: Feature Request
11
I have an issue with destroying modal kendoWindow when it was opened in a chain after a few more
In case there are a couple of opened modal windows(win1, win2, win3, win4) after destroying one that was closed(win5) – two next in chain(win3 and win4) becomes enabled, instead of only the last one(win4).

I’ve analyzed the code of method kendoWindow.destroy and found following lines 

if (shouldHideOverlay) {
    that._overlay(false).remove();
} else if (modalWindows.length > 0) {
    windowObject(modalWindows.eq(modalWindows.length - 2), that.options.name)._overlay(true);                 
}

It seems that line 
modalWindows.length - 2 
should be changed to
modalWindows.length - 1
as modalWindows holds currenlty opened windows, and overlay should be turned on for the last one.
1 comment
ADMIN
Petyo
Posted on: 10 May 2016 15:44
Sounds like a bug we fixed some time ago.