Skip to content

[core] deprecate Portal stopPropagationEvents#6632

Merged
adidahiya merged 3 commits into
developfrom
ad/deprecate-portal-stop-propagation-events
Jan 8, 2024
Merged

[core] deprecate Portal stopPropagationEvents#6632
adidahiya merged 3 commits into
developfrom
ad/deprecate-portal-stop-propagation-events

Conversation

@adidahiya

@adidahiya adidahiya commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

@gluxon gluxon left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
@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