better sticker change handling

This commit is contained in:
Fedor Katurov 2020-01-22 12:02:16 +07:00
parent a1f9704c0b
commit 60b8fd51a2
2 changed files with 33 additions and 22 deletions

View file

@ -4,6 +4,7 @@ import classnames from 'classnames';
interface Props {
value: string;
onChange: (text: string) => void;
onBlur: () => void;
}
type State = {
@ -50,6 +51,7 @@ class StickerDesc extends React.PureComponent<Props, State> {
onMouseDown={this.blockMouse}
onDragStart={this.blockMouse}
ref={el => { this.input = el; }}
onBlur={this.props.onBlur}
/>
</div>
</div>