[Event System] OS10 event still triggered even though it shouldn't.

Forge Component
Published on 2019-06-11 by Leonardo Fernandes
39 votes
Published on 2019-06-11 by Leonardo Fernandes

I'm working in OS 10 and I got multiple webblocks with Event Handlers in them.

Now I'm throwing an event on all these blocks however some of them are hidden in IF branches.

I have noticed that once I've loaded/shown a block once, it will suddenly catch all events thrown, even after I hide it in the IF branch.

I am able to counter this by checking if the block should even do something when it catches the event, but this is causing so much more work.

Hello Claring.

Are you using the .NET version? I am aware of this issue, but just haven't had time to fix it. But I'll need to fix it, because I'm running into the same problem in a project.

I'll try to fix it during the weekend, and I'll let you know.

Hey Leonardo, 

Exactly, I'm using the .NET version.

Thanks, I'm looking forward to it!

Claring, could you share some portion of your application that exhibits this behaviour? I'm not having difficulty reproducing, but it would be good to have a real-world use case for having events inside ifs. And I would be able to test it in the same exact conditions as you are using.


I have sent you the file in a PM.

Claring, just to let you know that it took me a while, but I've finally fixed the issue. Starting with Event System 10.0.6, the events are no longer triggered if they weren't rendered in the first place.

Hi Leonardo,

I've just starting using your library and it seems to me that the above problem still exists. I'm using he current version for OS 11.

A simple use case:

  • 2 web blocks, both inside IFs, only one visible; both having events called "Title"
  • a button that calls GetEventHandlers
  • this call results with a list of 2 handlers (instead of 1 as expected)
  • and in fact, when Triggered, events from both webblocks are triggered, despite of one being hidden and not rendered

Could you check it, please? It's very important for me.

Best regards


Hi Tomasz, I was able to reproduce this problem. I'll have a look next week.


Hi Tomasz, the latest version fixes that problem.

Thank you for reporting it.

Hi Leonardo,

I confirm - it works.

Thank you for repairing it :-)