From 91cd542630ed53ff72f3267eca47e4331cfc844e Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 18 Mar 2026 14:24:03 +0100 Subject: [PATCH] retain legacyTypeRef when undoing content --- src/ytype.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ytype.js b/src/ytype.js index b90f4faa..ef98d0ef 100644 --- a/src/ytype.js +++ b/src/ytype.js @@ -707,7 +707,9 @@ export class YType { * @return {YType} */ _copy () { - return new YType(this.name) + const ytype = new YType(this.name) + ytype._legacyTypeRef = this._legacyTypeRef + return ytype } /**