oruga icon indicating copy to clipboard operation
oruga copied to clipboard

Modal onClose method called twice

Open BuffMcBigHuge opened this issue 2 years ago • 1 comments

Overview of the problem

Vue: 3.2.25
@oruga-ui/oruga-next: 0.5.4
@oruga-ui/theme-bulma: 0.2.3

Description

The Modal onClose functions seems to call twice. This behaviour makes it difficult to handle modal callbacks to the originating component.

Steps to reproduce

CodeSandbox

Expected behavior

Emitting a single 'close' event should only call the onClose method a single time.

Actual behavior

The onClose method is called twice, one of which is always with an undefined result in the callback.

BuffMcBigHuge avatar Apr 04 '22 22:04 BuffMcBigHuge

@BuffMcBigHuge using promise it works. We'll investigate about callback way

jtommy avatar Apr 05 '22 05:04 jtommy