Vue V3 Dialog not closing


#1

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


#2

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/