fix(module: core): check ContainsKey for shared event subscriptions store of DomEventListener (#3364)

This commit is contained in:
James Yeung 2023-07-27 22:40:47 +08:00 committed by GitHub
parent ed68adf35e
commit 9f5beb99b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,9 @@ namespace AntDesign.JsInterop
var dotNetObject = DotNetObjectReference.Create(new Invoker<string>((p) =>
{
if (!_domEventSubscriptionsStore.ContainsKey(key))
return;
for (var i = 0; i < _domEventSubscriptionsStore[key].Count; i++)
{
var subscription = _domEventSubscriptionsStore[key][i];