[ 
https://issues.apache.org/jira/browse/WICKET-6099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157156#comment-15157156
 ] 

Sven Meier commented on WICKET-6099:
------------------------------------

This has always worked, since the browser triggers a click on the input when 
you click the label.
Is this a new problem with a specific browser version?

> AjaxFormChoiceComponentUpdatingBehavior's javascript doesn't work when the 
> radio has a label
> --------------------------------------------------------------------------------------------
>
>                 Key: WICKET-6099
>                 URL: https://issues.apache.org/jira/browse/WICKET-6099
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.2.0
>            Reporter: Martin Grigorov
>
> AjaxFormChoiceComponentUpdatingBehavior's JS precondition
> {code}
> return attrs.event.target.name === '%s'", getFormComponent().getInputName()
> {code}
> doesn't work in case the input is used with a label like
> {code}
> <label>Blah <input .../></label>
> {code}
> or
> {code}
> <label for="x">Blah</label>
> <input id="x" .../>
> {code}
> In these case the event target is the label.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to