aboutsummaryrefslogtreecommitdiff
path: root/src/mobile/MobileInterface.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-01-11 13:18:29 -0500
committerbobzel <zzzman@gmail.com>2024-01-11 13:18:29 -0500
commit6f278fdf5882bd7c936d64f4da8bf75c34196311 (patch)
treec4cea30f585ab562585c6b203813b4f52fb65d94 /src/mobile/MobileInterface.tsx
parent06aaa5d58b62e7c85a81ce6b592c96cd13d16dd3 (diff)
fixed obervable values not updateing because of component functions being defined as vairables
Diffstat (limited to 'src/mobile/MobileInterface.tsx')
-rw-r--r--src/mobile/MobileInterface.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx
index e3d8f9394..a1ce55314 100644
--- a/src/mobile/MobileInterface.tsx
+++ b/src/mobile/MobileInterface.tsx
@@ -257,7 +257,7 @@ export class MobileInterface extends React.Component {
}
@action
- componentDidMount = () => {
+ componentDidMount() {
// if the home menu is in list view -> adjust the menu toggle appropriately
this._menuListView = this._homeDoc._type_collection === 'stacking' ? true : false;
Doc.ActiveTool = InkTool.None; // ink should intially be set to none
@@ -267,7 +267,7 @@ export class MobileInterface extends React.Component {
// remove double click to avoid mobile zoom in
document.removeEventListener('dblclick', this.onReactDoubleClick);
document.addEventListener('dblclick', this.onReactDoubleClick);
- };
+ }
@action
componentWillUnmount = () => {