Active
Project:
Form Options Attributes
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2019 at 18:49 UTC
Updated:
8 Jan 2019 at 18:49 UTC
Jump to comment: Most recent
Comments
Comment #2
jidrone commentedFor others looking for a solution, I found it is caused by the browser, so it has nothing to do with this module.
You can do the following to have a similiar functionality:
$form['your_field']['widget']['#options_attributes']['option_id'] = ['onclick' => 'this.checked=!this.checked;'];It was the easiest fix I found here https://stackoverflow.com/a/155349