mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 01:52:19 +08:00
fix(react): inline overlays display contents consistently (#26255)
Resolves #26253
This commit is contained in:
@ -144,6 +144,7 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
|
|||||||
{
|
{
|
||||||
id: 'ion-react-wrapper',
|
id: 'ion-react-wrapper',
|
||||||
ref: this.wrapperRef,
|
ref: this.wrapperRef,
|
||||||
|
className: 'ion-delegate-host',
|
||||||
style: {
|
style: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
@ -27,6 +27,25 @@ describe('keepContentsMounted', () => {
|
|||||||
|
|
||||||
cy.get('ion-modal ion-content').should('exist');
|
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', () => {
|
describe('popover', () => {
|
||||||
it('should not mount component if false', () => {
|
it('should not mount component if false', () => {
|
||||||
|
Reference in New Issue
Block a user