passing editing status to map

This commit is contained in:
Fedor Katurov 2019-12-30 16:41:37 +07:00
parent 58eefd5670
commit 9c3c8cf46d
10 changed files with 213 additions and 65 deletions
src/components

View file

@ -16,12 +16,10 @@ export class StickerDesc extends React.PureComponent<Props, State> {
};
setText = e => {
this.setState({ text: e.target.value });
this.props.onChange(e.target.value);
};
blockMouse = e => {
console.log('BM');
e.stopPropagation();
this.input.focus();
};
@ -30,7 +28,7 @@ export class StickerDesc extends React.PureComponent<Props, State> {
// todo: pass here locker for moving markers from Sticker.js
render() {
const { text } = this.state;
const { value: text } = this.props;
return (
<div