aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkEditor.tsx
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-07-14 23:37:47 -0400
committerFawn <fangrui_tong@brown.edu>2019-07-14 23:37:47 -0400
commit4905b2d7ecc6a946ab5173ca624b99d8f0155e9f (patch)
tree3050470ac989310d004f668e79320c30b5098b44 /src/client/views/nodes/LinkEditor.tsx
parentf9cda26e1139f51c6e995a12279fbbd57a55318f (diff)
code clean on linking
Diffstat (limited to 'src/client/views/nodes/LinkEditor.tsx')
-rw-r--r--src/client/views/nodes/LinkEditor.tsx10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/client/views/nodes/LinkEditor.tsx b/src/client/views/nodes/LinkEditor.tsx
index 02373926e..afde85b69 100644
--- a/src/client/views/nodes/LinkEditor.tsx
+++ b/src/client/views/nodes/LinkEditor.tsx
@@ -25,11 +25,6 @@ class GroupTypesDropdown extends React.Component<GroupTypesDropdownProps> {
@observable private _searchTerm: string = this.props.groupType;
@observable private _groupType: string = this.props.groupType;
@observable private _isEditing: boolean = false;
- // @observable private _ref: React.RefObject<HTMLInputElement> = React.createRef();
-
- // @action setSearchTerm = (value: string): void => { this._searchTerm = value; };
- // @action setGroupType = (value: string): void => { this._groupType = value; };
- // @action setIsEditing = (isEditing: boolean): void => { this._isEditing = isEditing; console.log(this._isEditing); };
@action
createGroup = (groupType: string): void => {
@@ -62,7 +57,6 @@ class GroupTypesDropdown extends React.Component<GroupTypesDropdownProps> {
this._searchTerm = this._groupType;
this._isEditing = false;
- console.log("on key down", this._isEditing);
}
}
@@ -79,14 +73,11 @@ class GroupTypesDropdown extends React.Component<GroupTypesDropdownProps> {
}
this._searchTerm = this._groupType;
this._isEditing = false;
- console.log("option clicked", this._isEditing);
}
@action
onButtonPointerDown = (): void => {
this._isEditing = true;
- console.log("button down", this._isEditing);
- //make focus on input
}
renderOptions = (): JSX.Element[] | JSX.Element => {
@@ -113,7 +104,6 @@ class GroupTypesDropdown extends React.Component<GroupTypesDropdownProps> {
}
render() {
- console.log("render", this._isEditing);
if (this._isEditing || this._groupType === "") {
return (
<div className="linkEditor-dropdown">