Skip to content

Commit 770ef8f

Browse files
committed
update dependencies: downgrade quill to 1.3.7
1 parent 31ea4d6 commit 770ef8f

4 files changed

Lines changed: 74 additions & 57 deletions

File tree

package-lock.json

Lines changed: 65 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"pngjs": "^7.0.0",
153153
"python-shell": "3.0.1",
154154
"quantize": "^1.0.0",
155-
"quill": "^2.0.3",
155+
"quill": "1.3.7",
156156
"react": "18.3.1",
157157
"react-dom": "18.3.1",
158158
"react-select": "5.8.2",

packages/instrument/window/history/list-component.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Menu, MenuItem } from "@electron/remote";
22
import React from "react";
3-
import { findDOMNode } from "react-dom";
43
import { IObservableValue, action, makeObservable, runInAction } from "mobx";
54
import { observer } from "mobx-react";
65
import classNames from "classnames";
@@ -330,7 +329,6 @@ export class HistoryListComponentClass extends React.Component<{
330329
jumpToPresentCondition: IObservableValue<boolean>;
331330
}> {
332331
animationFrameRequestId: any;
333-
div: Element;
334332

335333
fromBottom: number | undefined;
336334
fromTop: number | undefined = 0;
@@ -344,6 +342,12 @@ export class HistoryListComponentClass extends React.Component<{
344342
findCenterItemTimeut: any;
345343
lastItemInTheCenterId: string | undefined;
346344

345+
ref = React.createRef<HTMLDivElement>();
346+
347+
get div() {
348+
return this.ref.current!.parentElement as Element;
349+
}
350+
347351
constructor(props: any) {
348352
super(props);
349353

@@ -581,12 +585,7 @@ export class HistoryListComponentClass extends React.Component<{
581585
return (
582586
<div
583587
className="EezStudio_HistoryListComponentContainer"
584-
ref={(ref: any) => {
585-
let div = findDOMNode(ref);
586-
if (div && div.parentElement) {
587-
this.div = div.parentElement;
588-
}
589-
}}
588+
ref={this.ref}
590589
onClick={event => {
591590
if (
592591
$(event.target).closest(

packages/instrument/window/shortcuts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ShortcutsToolbarRegistry {
5555
activeShortcutsToolbar: observable
5656
});
5757

58-
this.findActiveShortcutsToolbar();
58+
//this.findActiveShortcutsToolbar();
5959
}
6060

6161
findActiveShortcutsToolbar = () => {

0 commit comments

Comments
 (0)