Skip to content

Fix (v-c-tooltip, v-c-popover): tooltip / popover not hided on unmount of component #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2022

Conversation

gfoidl
Copy link
Contributor

@gfoidl gfoidl commented Apr 25, 2022

In

beforeUnmount(binding: DirectiveBinding): void {
the binding is passed in as first argument, but according to vue's documentation the first argument is the el: HtmlElement, and the second argument is the binding.

Setting a breakpoint this can be seen:

fix01

Especially when going up on frame in the stack-trace:

fix02

#183 also did this, but for tooltip only and it got closed without being merged. So the bug is still there (version 4.2.0, but all branches I check also).

gfoidl added a commit to gfoidl-Tests/Vue_Server_Test that referenced this pull request Apr 25, 2022
gfoidl added a commit to gfoidl-Tests/Vue_Server_Test that referenced this pull request Apr 26, 2022
* Updated server side

* Node updates

* Delete tests folder (tmp)

* Made project running with Vue 3 \ {tests}

* CoreUI instead of BootstrapVue 3

* Registered CoreUI components and directives in setup-coreui.ts

So not every component that uses them needs to type the imports, and the components, etc.
This approach still only imports what's needed (in the app) instead of importing all components.

* Register icons globally (lazy)

* Temporary patch for coreui/coreui-vue#203

* Restored unit-tests

* Restored vue-tests

* Restored e2e-tests (puppeteer)

* Restored e2e-full tests

* Updated CI

* Test-failure to validate CI

* Revert "Test-failure to validate CI"

This reverts commit ba82410.

* Build backend after frontend (again)
@github-actions
Copy link

github-actions bot commented Jul 3, 2022

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

@gfoidl
Copy link
Contributor Author

gfoidl commented Jul 3, 2022

Please don't close.

@mrholek mrholek merged commit 42f6663 into coreui:main Jul 28, 2022
@gfoidl gfoidl deleted the directives-unmount-fix branch July 17, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants