mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed triggerOnChange
This commit is contained in:
parent
da77f50a97
commit
74a49ae35d
2 changed files with 2 additions and 3 deletions
|
@ -200,8 +200,6 @@ export class Editor {
|
|||
};
|
||||
|
||||
triggerOnChange = (): void => {
|
||||
console.log('trigger on change', this.isEmpty, this.getIsEmpty());
|
||||
|
||||
if (this.isEmpty !== this.getIsEmpty()) this.setIsEmpty(this.isEmpty);
|
||||
if (this.getEditing() && !this.getChanged()) this.setChanged(true);
|
||||
};
|
||||
|
|
|
@ -55,7 +55,8 @@ export class Poly {
|
|||
onVertexShow = (): void => this.editor.setMarkersShown(true);
|
||||
|
||||
updateMarks = event => {
|
||||
this.editor.setChanged(true);
|
||||
// this.editor.setChanged(true);
|
||||
this.editor.triggerOnChange();
|
||||
|
||||
const { latlngs } = event;
|
||||
this.arrows.setLatLngs(latlngs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue