Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Checkbox not working with hidden element in browsers other than chrome #64

Open
bahularora opened this issue Jan 8, 2013 · 7 comments
Labels

Comments

@bahularora
Copy link

In rails, when we use check_box, it creates a hidden field because of which, I guess , we can't click on the IcoMoon Checkbox. We have to click little to the left, i.e. the hidden element.

http://apidock.com/rails/ActionView/Helpers/FormHelper/check_box

@aozora
Copy link
Owner

aozora commented Apr 8, 2013

please can you point to a sample test made with Rails + BootMetro?

@kadsyy
Copy link

kadsyy commented Apr 9, 2013

this also happen in cakephp.
this is the sample output ;

`


Example checkbox
`

the hidden input was automatically generated.
so we gotta click on the hidden input which is on the left of the visible checkbox to make the 'right' icon appear on the checkbox.
i think there was a guys said that it can be fix with 'display:none' on the hidden input, but seems its not working now.

@aozora
Copy link
Owner

aozora commented Apr 9, 2013

it's strange... which version of bootmetro are you using? Which browser?

@bahularora
Copy link
Author

I was using version 1.0

@bahularora bahularora reopened this Apr 9, 2013
@aozora
Copy link
Owner

aozora commented Apr 9, 2013

ok, I can reproduce this issue... I'll give you an update asap

@aozora
Copy link
Owner

aozora commented Apr 9, 2013

there's a way in ruby to change the order in which the html is rendered for the checkbox?
if the hidden input is rendered AFTER the checkbox input is ok, otherwise the issue appears....

@kadsyy
Copy link

kadsyy commented Apr 9, 2013

now that u mentioned it, in cakephp we can disable it using


`echo $this->Form->checkbox('published', array('hiddenField' => false));`

mybe in ruby it have a property to hide it also

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants