fix: reset unmounted state for the component (#4682)
* Reset unmounted state for the component * update changelog Co-authored-by: ad1992 <aakansha1216@gmail.com>
This commit is contained in:
parent
631a228ca1
commit
719ae7b72f
@ -809,6 +809,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public async componentDidMount() {
|
public async componentDidMount() {
|
||||||
|
this.unmounted = false;
|
||||||
this.excalidrawContainerValue.container =
|
this.excalidrawContainerValue.container =
|
||||||
this.excalidrawContainerRef.current;
|
this.excalidrawContainerRef.current;
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ Please add the latest change on the top under the correct section.
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
- Reset `unmounted` state on the component once component mounts to fix the mounting/unmounting repeatedly when used with `useEffect` [#4682](https://github.com/excalidraw/excalidraw/pull/4682).
|
||||||
- Panning the canvas using `mousewheel-drag` and `space-drag` now prevents the browser from scrolling the container/page [#4489](https://github.com/excalidraw/excalidraw/pull/4489).
|
- Panning the canvas using `mousewheel-drag` and `space-drag` now prevents the browser from scrolling the container/page [#4489](https://github.com/excalidraw/excalidraw/pull/4489).
|
||||||
- Scope drag and drop events to Excalidraw container to prevent overriding host application drag and drop events.
|
- Scope drag and drop events to Excalidraw container to prevent overriding host application drag and drop events.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user