Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
{
id: 'ion-react-wrapper',
ref: this.wrapperRef,
className: 'ion-delegate-host',
style: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ describe('keepContentsMounted', () => {

cy.get('ion-modal ion-content').should('exist');
});

it('should display contents consistently on re-open', () => {
// https://github.com/ionic-team/ionic-framework/issues/26253
cy.visit('/keep-contents-mounted');

cy.get('#open-modal').click();

cy.get('ion-modal ion-content').should('exist');

cy.get('ion-modal ion-button').click();

cy.get('ion-modal')
.should('not.be.visible')
.should('have.class', 'overlay-hidden');

cy.get('#open-modal').click();

cy.get('ion-modal ion-button').should('be.visible');
})
})
describe('popover', () => {
it('should not mount component if false', () => {
Expand Down