Problem/Motivation

Hi, i have a field checkbox in a form, in online web site, the problem is that this checkbox field is not checked when i click the checkbox, only get the focus, but in localhost with the same page backup, the checked action in checkbox is correct and mark the "v" simbol.
The problem is the same in firefox and in chrome.

if the form is send and previously the checkbox are checked , form data send that have the checkbox checked, but the user dont see the the "v" simbol in the checkbox.

Any idea), thanks.

.

Comments

Cangurin limpiezas created an issue. See original summary.

cilefen’s picture

Issue tags: -Checkbox not checked +Needs steps to reproduce

Please add the steps to reproduce so contributors may advise.

cangurin limpiezas’s picture

In Olivero theme in my web online , in any form that have one checkbox, is impossible checked, the checkbox only get the focus.
The same page in localhost the checkbox checked it works.
no steps to reproduce, only that in any form in online site , when the user check the checkbox, the checkbox dont mark the "v" simbol.

gauravvvv’s picture

Hi @Cangurin limpiezas, Can you please provide screenshot for following?

mherchel’s picture

Also, can you reproduce this on https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboat.qa/form/example... ?

What browser are you using? If you inspect the checkbox using developer tools, is it disabled?

cangurin limpiezas’s picture

StatusFileSize
new15.27 KB
new18.3 KB

hi , the first thanks for our responses

in response to @mherchel, in https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboat.qa/form/example..., i can check the checkbox without problem.

i use
chrome Versión 89.0.4389.114 (Build oficial) (64 bits) in ubuntu 20
and mozilla 86.0 (64-bit)

when i inspect the checbox after checked i get this

<input data-drupal-selector="edit-notify" type="checkbox" id="edit-notify" name="notify" value="1" checked="checked" class="form-checkbox form-boolean form-boolean--type-checkbox">

in response to @Gauravmahlawat

i attach 2 records in gif of the screen, one record in localhost (localhost.gif), and one record in online site (onlineversion.gif).

mherchel’s picture

Status: Active » Closed (cannot reproduce)

If it's not happening on the tugboat URL, then this is unrelated to the theme. My guess is that you have something else that's either disabling the input, or has an event listener attached to it that's doing weird things. No clue why it would happen on production and not on your local environment.

cangurin limpiezas’s picture

@mherchel, you are right, i found the problem.
The localhost version is not exactly the seem that the online version of the web site. in localhost i have disable "Advanced CSS/JS Aggregation" module for developed.
if i enabled the module the error in the checkbox appear too in localhost site.
Then the problem is of configuration of "Advanced CSS/JS Aggregation" module.
Thanks a lot for our time.

cangurin limpiezas’s picture

Status: Closed (cannot reproduce) » Fixed
cangurin limpiezas’s picture

Category: Bug report » Support request
Status: Fixed » Closed (won't fix)