power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TDefaultButton broken when multiple TDefaultButton are on the same page #424

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put multiple TPanels in a page, each one with a textbox and a tbutton; set 
each panel's DefaultButton to the button it contains;
2. Try to play with defaultbuttons

What is the expected output? What do you see instead?
Only the last TDefaultButton will work

Please use labels and text to provide additional information.
Original discussion: http://www.pradoframework.com/forum/index.php?topic=15407.0

Original issue reported on code.google.com by ctrlal...@gmail.com on 29 Sep 2012 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by ctrlal...@gmail.com on 29 Sep 2012 at 8:13

GoogleCodeExporter commented 8 years ago
This is caused by the patch for issue #181. The event observer declared in 
Prado.WebUI.Control uses the control ID to discriminate which events needs to 
be unbinded. Since the DefaultButton control did not specify an ID for itself, 
each DefaultButton declaration would override the previous one.

Original comment by ctrlal...@gmail.com on 29 Sep 2012 at 8:16

GoogleCodeExporter commented 8 years ago
fixed in r3208

Original comment by ctrlal...@gmail.com on 2 Nov 2012 at 4:35