clone : reset parser call to original api

This commit is contained in:
Martin Hermant 2018-10-11 10:09:05 +02:00
parent 4d49f96272
commit aafa457718
No known key found for this signature in database
GPG key ID: FA123D713AB2A87C

View file

@ -123,8 +123,8 @@ class Clone extends Widget {
this.cloneClass = [...this.cloneTarget.container.classList].filter(i=>excludedCloneClasses.indexOf(i) === -1)
this.container.classList.remove('empty')
this.container.classList.add(...this.cloneClass)
const propsCopy = deepCopy(this.cloneTarget.props)
var clone = parser.parse([{...propsCopy, ...this.getProp('props')}], this.widget, this,null,null,true)
var clone = parser.parse([{...deepCopy(this.cloneTarget.props), ...this.getProp('props')}], this.widget, this)
if (clone.getProp('id') === this.cloneTarget.getProp('id')) {
widgetManager.trigger('change.*', [{