mirror of
https://github.com/yjs/yjs.git
synced 2026-09-01 19:50:38 +02:00
retain legacyTypeRef when undoing content
This commit is contained in:
@@ -707,7 +707,9 @@ export class YType {
|
||||
* @return {YType<DConf>}
|
||||
*/
|
||||
_copy () {
|
||||
return new YType(this.name)
|
||||
const ytype = new YType(this.name)
|
||||
ytype._legacyTypeRef = this._legacyTypeRef
|
||||
return ytype
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user