dialog icon indicating copy to clipboard operation
dialog copied to clipboard

Multiple instances fail being escapable

Open dy opened this issue 9 years ago • 0 comments

If we create multiple dialogs:

var a = Dialog('a').escapable();
var b = Dialog('b').escapable();
var c = Dialog('c').escapable();
b.show();

then b will not be closed by escape. That is because of that string. active there is not the initial dialog anymore, as far other dialogs have overwritten it. Not sure what is the purpose of active, it seems that it is better to use self.

dy avatar Jun 27 '15 22:06 dy