?
avatar Hanmac
Hanmac
18 Jun 2015

currently https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/select.php radiolist does define input inside its label, but thats wrong because with that input cant be selected
the code does need to be rewritten so that the input field is outside of its label (maybe with also adding a div around both input and label)

while searching i also found this:
https://github.com/joomla-framework/form/blob/master/src/Html/Select.php

in that one its more correct with the input outside of the label.

avatar Hanmac Hanmac - open - 18 Jun 2015
avatar Bakual
Bakual - comment - 18 Jun 2015

Both
<label><input type="radio" name="foo" value="bar">Bar</label>
and
`Bar
are valid syntax

So it's not wrong, just a possible flavor. And I think the way we have is related to Bootstrap 2.3.

avatar Hanmac
Hanmac - comment - 18 Jun 2015

then i dont know what wend wrong, but i cant select the input in the first way because the label somehow prevents that

avatar zero-24 zero-24 - change - 18 Jun 2015
Category Libraries
avatar Bakual
Bakual - comment - 18 Jun 2015

I don't know either.
You may want to ask in the forum (forum.joomla.org) and see where the issue is coming from.

avatar Bakual Bakual - change - 18 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-18 10:23:57
Closed_By Bakual
avatar Bakual Bakual - close - 18 Jun 2015
avatar zero-24 zero-24 - close - 18 Jun 2015
avatar Hanmac
Hanmac - comment - 18 Jun 2015

found the bug, some other developer did make a click event on the label with preventDefault.
thats why the click on the input got prevented.

still thanks for the fast helping.

avatar zero-24 zero-24 - change - 18 Jun 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment