Skip to content
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

[core] deprecate Portal stopPropagationEvents #6632

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Jan 8, 2024

addresses #6580, fixes #6428

Changes proposed in this pull request:

Deprecate portalStopPropagationEvents (added in #6093) since its implementation is not effective in React 17+ and stopping event propagation is discouraged anyway. We should come up with an alternative solution for the problem this was trying to solve.

@adidahiya
Copy link
Contributor Author

[core] deprecate Overlay portalStopPropagationEvents

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Copy link
Contributor

@gluxon gluxon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adidahiya! Plan sounds good to me.

(I agree the original problem portalStopPropagationEvents was addressing is a real one. Unfortunate our workaround doesn't work on React 17+.)

@adidahiya
Copy link
Contributor Author

revert whitespace change

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya changed the title [core] deprecate Overlay portalStopPropagationEvents [core] deprecate Portal stopPropagationEvents Jan 8, 2024
@adidahiya adidahiya enabled auto-merge (squash) January 8, 2024 17:01
@adidahiya
Copy link
Contributor Author

deprecate on Portal component too

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit efb0a70 into develop Jan 8, 2024
12 checks passed
@adidahiya adidahiya deleted the ad/deprecate-portal-stop-propagation-events branch January 8, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enabling portalStopPropagationEvents for a dialog cases button popovers to not work
2 participants