-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vue): cache attached view reference (#26694)
Resolves #26695
- Loading branch information
1 parent
e396545
commit a930c43
Showing
6 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<ion-page> | ||
<ion-content> | ||
<ion-list> | ||
<ion-item button router-link="/components/select"> | ||
<ion-label>Select</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
import { IonPage, IonContent, IonList, IonItem, IonLabel } from "@ionic/vue"; | ||
export default defineComponent({ | ||
components: { IonPage, IonContent, IonList, IonItem, IonLabel }, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<ion-page> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>Select</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-item> | ||
<ion-label>Select Popover</ion-label> | ||
<ion-select | ||
id="select-popover" | ||
interface="popover" | ||
placeholder="Select fruit" | ||
> | ||
<ion-select-option value="apples">Apples</ion-select-option> | ||
<ion-select-option value="oranges">Oranges</ion-select-option> | ||
<ion-select-option value="bananas">Bananas</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonPage, | ||
IonHeader, | ||
IonToolbar, | ||
IonTitle, | ||
IonContent, | ||
IonItem, | ||
IonLabel, | ||
IonSelect, | ||
IonSelectOption, | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
export default defineComponent({ | ||
components: { | ||
IonPage, | ||
IonHeader, | ||
IonToolbar, | ||
IonTitle, | ||
IonContent, | ||
IonItem, | ||
IonLabel, | ||
IonSelect, | ||
IonSelectOption, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe("Components: Select", () => { | ||
beforeEach(() => { | ||
cy.visit("http://localhost:8080/components/select"); | ||
}); | ||
|
||
it("should open a popover overlay interface", () => { | ||
cy.get("#select-popover").click(); | ||
cy.get("ion-popover").should("exist").should("be.visible"); | ||
}); | ||
}); |