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

Master 2.9.3 #2507

Merged
merged 23 commits into from
Apr 13, 2023
Merged

Master 2.9.3 #2507

merged 23 commits into from
Apr 13, 2023

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Apr 13, 2023

No description provided.

T4rk1n and others added 22 commits March 31, 2023 11:04
Fix clientside inline function name.
Currently, if the component is not mounted (e.g. because on a different page),
the component will still receive the change event and the `onLocationChange`
callback changes its props via `this.props.setProps` with the itempath from
('_dashprivate_path') in the DOM. The object, however, is
not on the dom and a random other DOM element is assigned the changed props.

The PR deregisters the event listeners of the component is unmounted. They will
be added again via `componentDidMount` anyways if the component is mounted again.

fixes #1346
…unmount

Remove event listeners for Location on unmount
@T4rk1n T4rk1n requested a review from alexcjohnson as a code owner April 13, 2023 16:01
@T4rk1n T4rk1n merged commit 64a1c25 into master Apr 13, 2023
@T4rk1n T4rk1n deleted the master-2.9.3 branch April 13, 2023 17:29
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.

3 participants