mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 12:07:44 +08:00
fix(module: core): check ContainsKey for shared event subscriptions store of DomEventListener (#3364)
This commit is contained in:
parent
ed68adf35e
commit
9f5beb99b5
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user