From 02f0de95d49faad0820c314510dd2486caf4b405 Mon Sep 17 00:00:00 2001 From: Milap Naik Date: Mon, 18 Dec 2023 15:03:03 -0500 Subject: [PATCH] Add check for onChange function (#941) * Add check for onChange function * Check for defined onChange first --------- Co-authored-by: Bronley Plumb --- src/XmlScope.spec.ts | 4 ++++ src/XmlScope.ts | 11 ++++++++++- src/parser/SGTypes.ts | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/XmlScope.spec.ts b/src/XmlScope.spec.ts index 61cf23b9c..a8141c609 100644 --- a/src/XmlScope.spec.ts +++ b/src/XmlScope.spec.ts @@ -103,6 +103,7 @@ describe('XmlScope', () => { +