mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-03 06:56:41 +07:00
passing editing status to map
This commit is contained in:
parent
58eefd5670
commit
9c3c8cf46d
10 changed files with 213 additions and 65 deletions
src/components
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue