|
|
@ -1,14 +1,16 @@
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
interface Props {
|
|
|
|
placeholder: string;
|
|
|
|
placeholder: string;
|
|
|
|
editable?: boolean;
|
|
|
|
editable?: boolean;
|
|
|
|
onChange?: any;
|
|
|
|
onChange?: any;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class SessionIdEditable extends React.PureComponent<Props> {
|
|
|
|
export class SessionIdEditable extends React.PureComponent<Props> {
|
|
|
|
|
|
|
|
public componentWillUnmount() {
|
|
|
|
|
|
|
|
//FIXME ugly hack to empty the content editable div used on enter session ID
|
|
|
|
|
|
|
|
window.Session.emptyContentEditableDivs();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public render() {
|
|
|
|
public render() {
|
|
|
|
const { placeholder, editable, onChange } = this.props;
|
|
|
|
const { placeholder, editable, onChange } = this.props;
|
|
|
|