bootmetro icon indicating copy to clipboard operation
bootmetro copied to clipboard

Checkbox not working with hidden element in browsers other than chrome

Open bahularora opened this issue 13 years ago • 7 comments

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

bahularora avatar Jan 08 '13 06:01 bahularora

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

aozora avatar Apr 08 '13 12:04 aozora

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

``

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.

kadsyy avatar Apr 09 '13 05:04 kadsyy

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

aozora avatar Apr 09 '13 07:04 aozora

I was using version 1.0

bahularora avatar Apr 09 '13 07:04 bahularora

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

aozora avatar Apr 09 '13 07:04 aozora

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....

aozora avatar Apr 09 '13 09:04 aozora

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

kadsyy avatar Apr 09 '13 09:04 kadsyy