This commit is contained in:
Tim
2024-03-20 22:04:07 -04:00
parent 3d19e6e47c
commit 551363ccb5
3 changed files with 4 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ let eventLock = false // this is set to true before events are processed, in ord
let propsEvents = {}
function handleDrawingEvent(id, event) {
if (eventLock && event !== 'properties_changed') { // properties has its own locking mechanism
if (eventLock && event !== 'properties_changed' && event !== 'remove') { // properties has its own locking mechanism
console.log('ignoring event', id, event)
return
}

View File

@@ -160,6 +160,7 @@ class Shape {
setPropsIfDirty(props) {
// console.log('dirtyProps', this.props, props, dirtyProps(this.props, props))
if( dirtyProps(this.props, props) )
this.setProps(props)
}