I’ve created an example.
https://jsfiddle.net/enylin/1qcm8v50/20/
I want to close the dialog after execute some functions.
I’ve noticed that if I close the dialog too quick, then it will fail.
How should I close the dialog?
Thanks
I’ve created an example.
https://jsfiddle.net/enylin/1qcm8v50/20/
I want to close the dialog after execute some functions.
I’ve noticed that if I close the dialog too quick, then it will fail.
How should I close the dialog?
Thanks
There is not much sense in closing dialog in sync
code, so according to this code it should be closed immediately. But if you really need such logic, then use utils.nextFrame
to close it https://jsfiddle.net/kfqncto1/