popover icon indicating copy to clipboard operation
popover copied to clipboard

'afterClose' event is fired right after 'opened' event

Open MaKCbIMKo opened this issue 2 years ago • 0 comments

I faced issue with afterClose event.

Yes, I saw this PR (https://github.com/ncstate-sat/popover/pull/220) and your comment said that you're aware. At that time PR got merged.

Later, I assume this commit (https://github.com/ncstate-sat/popover/commit/340cc7fd9ae9efc02aafb70e7f096833cb5e2c29) should fix this issue.

But it's not. I still can see this issue here - https://ncstate-sat.github.io/popover/

Interesting thing: it seems like first cycle (open and close) it works fine, but starting with second open and later - it fires afterClose event right after opened.

For some cases that might be fine. But for me, since I have logic that that should 'start before it's open' (aka opened event) and 'end after it's closed' (aka afterClose). And this 'but' ruins the event flow.

MaKCbIMKo avatar Sep 07 '21 15:09 MaKCbIMKo