-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[DismissableLayer] Fix pointer-events issues #1401
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
[DismissableLayer] Fix pointer-events issues #1401
Conversation
|
It's ready for a review, but I'd like to add some tests before we get it merged. |
62ec2bd to
2511f31
Compare
cypress/integration/Dialog.spec.ts
Outdated
| } else { | ||
| cy.findByLabelText('count up').realTouch(); | ||
| } | ||
| cy.findByLabelText('count up').should('not.eq', count); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this asserting what we expect? count is text but is cy.findByLabelText('count up') a button? will they always not be equal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, good shout, let me check on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were 💯 on the money here, great catch! I made it fail and it was still passing. Fixed now: 4d941df
* [DismissableLayer] Fix pointer-events issues Fixes radix-ui#1241 Fixes radix-ui#1263 * PR feedback * Add cypress tests * testing flake * Fix flake? * Fix false positive * Copy change
|
i had same error so i tried to solve my way and this actually work ` onClose: () => { }, Note, i did it with small timeout to make sure that first all modal scripts are completed and then im manually removing that. Hope it helps! |
Fixes #1241
Fixes #1263