From 91c6a153aeb0844901e623e4c482898468b24cc7 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 4 Feb 2020 18:14:18 +1100 Subject: [PATCH] function params changes --- ts/components/conversation/CreateGroupDialog.tsx | 16 ++++++++++------ ts/components/session/SessionClosableOverlay.tsx | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ts/components/conversation/CreateGroupDialog.tsx b/ts/components/conversation/CreateGroupDialog.tsx index 6e59abf6a..cd1f495a2 100644 --- a/ts/components/conversation/CreateGroupDialog.tsx +++ b/ts/components/conversation/CreateGroupDialog.tsx @@ -154,12 +154,16 @@ export class CreateGroupDialog extends React.Component { private onGroupNameChanged(event: any) { event.persist(); - this.setState(state => { - return { - ...state, - groupName: event.target.value, - }; - }); + console.log(event); + + // this.setState(state => { + // return { + // ...state, + // groupName: event.target.value, + // }; + // }, () => console.log(this.state.groupName)); + + } private onKeyUp(event: any) { diff --git a/ts/components/session/SessionClosableOverlay.tsx b/ts/components/session/SessionClosableOverlay.tsx index 44dedb4bd..ee5318246 100644 --- a/ts/components/session/SessionClosableOverlay.tsx +++ b/ts/components/session/SessionClosableOverlay.tsx @@ -42,6 +42,7 @@ export class SessionClosableOverlay extends React.Component { }; this.inputRef = React.createRef(); + this.onGroupNameChanged = this.onGroupNameChanged.bind(this); }