mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed delete buttons
This commit is contained in:
parent
2cf92a52cf
commit
3b85579645
2 changed files with 18 additions and 1 deletions
|
@ -19,13 +19,14 @@ export class Sticker {
|
|||
this.map = map;
|
||||
this.sticker = sticker;
|
||||
this.set = set;
|
||||
this.editable = true;
|
||||
// this.editable = true;
|
||||
this.triggerOnChange = triggerOnChange;
|
||||
this.direction = getLabelDirection(this.angle);
|
||||
this.deleteSticker = deleteSticker;
|
||||
this.lockMapClicks = lockMapClicks;
|
||||
|
||||
this.element = document.createElement('div');
|
||||
|
||||
ReactDOM.render(
|
||||
<React.Fragment>
|
||||
<div
|
||||
|
@ -49,6 +50,7 @@ export class Sticker {
|
|||
<div
|
||||
className="sticker-delete"
|
||||
onMouseDown={this.onDelete}
|
||||
onTouchStart={this.onDelete}
|
||||
/>
|
||||
</div>
|
||||
</React.Fragment>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue