merge release-6.4.2

Release 6.4.2
This commit is contained in:
Liam DeBeasi
2023-01-11 09:15:38 -05:00
committed by GitHub
571 changed files with 835 additions and 343 deletions

View File

@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [6.4.2](https://github.com/ionic-team/ionic/compare/v6.4.1...v6.4.2) (2023-01-11)
### Bug Fixes
* **vue:** unmount teleported user component ([#26543](https://github.com/ionic-team/ionic/issues/26543)) ([c996384](https://github.com/ionic-team/ionic/commit/c996384786257524842cc1dca8d0fb940699719b)), closes [#26542](https://github.com/ionic-team/ionic/issues/26542)
## [6.4.1](https://github.com/ionic-team/ionic/compare/v6.4.0...v6.4.1) (2022-12-14)
**Note:** Version bump only for package @ionic/vue

View File

@ -1,15 +1,15 @@
{
"name": "@ionic/vue",
"version": "6.4.1",
"version": "6.4.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/vue",
"version": "6.4.1",
"version": "6.4.2",
"license": "MIT",
"dependencies": {
"@ionic/core": "^6.4.1",
"@ionic/core": "^6.4.2",
"ionicons": "^6.0.2"
},
"devDependencies": {
@ -59,9 +59,9 @@
}
},
"node_modules/@ionic/core": {
"version": "6.4.1",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-6.4.1.tgz",
"integrity": "sha512-l1Z2sA9VjkO5rFhQMlNkqWQaSRyV1mcb6nYvLgi1cyDegcSDqLLJjZeyKVKYxTuc2qCaZhRlBe+c2155W8hmsw==",
"version": "6.4.2",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-6.4.2.tgz",
"integrity": "sha512-X6lKIrVL68UC3HenkUpOMw2Wu6D+XN42EbBPJdKFxGiW8ozhpzYj8QMUcX6ESC7jk44CrpUN3GpHhb+Lrw78OA==",
"dependencies": {
"@stencil/core": "^2.18.0",
"ionicons": "^6.0.4",
@ -768,9 +768,9 @@
}
},
"@ionic/core": {
"version": "6.4.1",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-6.4.1.tgz",
"integrity": "sha512-l1Z2sA9VjkO5rFhQMlNkqWQaSRyV1mcb6nYvLgi1cyDegcSDqLLJjZeyKVKYxTuc2qCaZhRlBe+c2155W8hmsw==",
"version": "6.4.2",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-6.4.2.tgz",
"integrity": "sha512-X6lKIrVL68UC3HenkUpOMw2Wu6D+XN42EbBPJdKFxGiW8ozhpzYj8QMUcX6ESC7jk44CrpUN3GpHhb+Lrw78OA==",
"requires": {
"@stencil/core": "^2.18.0",
"ionicons": "^6.0.4",

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/vue",
"version": "6.4.1",
"version": "6.4.2",
"description": "Vue specific wrapper for @ionic/core",
"scripts": {
"lint": "echo add linter",
@ -60,7 +60,7 @@
"vue-router": "^4.0.16"
},
"dependencies": {
"@ionic/core": "^6.4.1",
"@ionic/core": "^6.4.2",
"ionicons": "^6.0.2"
},
"vetur": {

View File

@ -33,5 +33,14 @@ export const addTeleportedUserComponent = (component: VNode) => {
}
export const removeTeleportedUserComponent = (component: VNode) => {
userComponents.value = userComponents.value.filter(cmp => cmp !== component);
/**
* Finds the index of the component in the array and removes it.
* Previously we were using a filter to remove the component from the array,
* but this was causing a bug where dismissing an overlay and then presenting
* a new overlay, would cause the new overlay to be removed.
*/
const index = userComponents.value.findIndex(cmp => cmp === component);
if (index !== -1) {
userComponents.value.splice(index, 1);
}
}