setAttribute and undomanager

let ydoc=new Y.Doc()
let ymap=ydoc.getMap(‘model’)
let ytext=new Y.Text()
ytext.setAttribute(‘ppr’,{jc:‘left’})
ymap.set(‘p’,ytext)

let undomanager=new Y.UndoManager(ymap)
ymap.observeDeep((events)=>{
for(let event of events){
if(event.transaction.origin===undomanager){
console.log(‘oldValue’,event)
}
}
})

ydoc.transact(()=>ytext.setAttribute(‘ppr’,{jc:‘right’}))
undomanager.undo()

when undo, the oldValue from event is jc:right, not jc:left

what am i doing wrong?

i’ve found the problem, forget it.