Topic: Checkbox id=" " length limited

KeHa priority asked 4 years ago


Hello MDB-Team,

I have included the checkbox component and found that attributes id in the checkbox has a length limited. With a length of 52 strings, selecting the checkbox does not work anymore, as soon as I shut it down to 50 it works. Is the supplement implemented by you?

With best regards

Kevin


MDBootstrap staff answered 4 years ago


Hi KeHa,

like Piotr said. The limitation was introduced by the bootstrap. On the other hand, Do you really need your id to be over 50 characters long? I understand that it turned out to be this long in this development process you are conducting but I can not imagine it being a good practice to create a dom element with id over 50 characters long. Sorry to tell that but we are not planning to change this.

Best Regards, Piotr


KeHa priority answered 4 years ago


Here is a example

<div class="form-check">
<input type="checkbox" class="form-check-input ${classNameCheckbox}" id="${name}" name="${name}" onclick="${onclick}" ${checked} title="${title}">
<label class="form-check-label ${disableCursorCss} ${classNameLabel}" for="${name}"><g:message code="${messageCode}"/></label>

and when the id have a length of 52 the checkbox isnt anymore select able.


Piotr Glejzer staff answered 4 years ago


Hi,

You probably using bootstrap checkboxes so this limit is introduced by them. May you show me a code about that problem?

Best,
Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: Notebook
  • Browser: Firefox
  • OS: Win 10 pro
  • Provided sample code: No
  • Provided link: No