# Bug report: Assigning different blocks to the click events of separate buttons

**URL:** <https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011>\
**Category:** IronRuby\
**Created:** [January 4, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011 "2008-01-04T16:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terence\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@Terence\_L](https://www.ruby-forum.com/u/Terence_L)\
**Post date:** [January 4, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011/1 "2008-01-04T16:02:51Z")

</div>

Hello list,

I was playing around with the code Scott Guthrie put up back in July  
about calling WPF from ironruby  
([ScottGu's Blog - First Look at IronRuby](http://weblogs.asp.net/scottgu/archive/2007/07/23/first-look-at-ironruby.aspx))  
and I came across the following issue:

I took the sample code and added another button with another ruby  
block for the click event just below the one labeled “Push Me”. This  
second block never gets executed when I click the second button, but  
rather the first block gets executed. Is this a known issue, and if  
so, what is causing the problem?

Thanks

Terence

---

<div class="post-metadata">

**Author:** ![Terence\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@Terence\_L](https://www.ruby-forum.com/u/Terence_L)\
**Post date:** [January 4, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/bug-report-assigning-different-blocks-to-the-click-events-of-separate-buttons/125011/2 "2008-01-04T17:35:42Z")

</div>

On Jan 4, 2008 6:52 AM, Terence L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I took the sample code and added another button with another ruby  
> block for the click event just below the one labeled “Push Me”. This  
> second block never gets executed when I click the second button, but  
> rather the first block gets executed. Is this a known issue, and if  
> so, what is causing the problem?

It’s a known issue. At the time it was previously identified, John L.  
wrote:

“We’re trying to track down the cause of this, but we know that we’re  
not building the correct rules for all cases in our ActionBinder.  
It’s likely related to this, but we’re not sure right now.”

–  
Curt H.  
removed\_email\_address@domain.invalid
