I'm working on a D8 project and I have some ajax callbacks where I use
It works fine but adds an extra div to my html.
For example I do :
$response->addCommand(new HtmlCommand('select[name="field_expert_name"]', $options));
And in my select, instead of getting just the options, I get :
<select> <div style="display: block;"> <option value="1">Val 1</option> <option value="2">Val 2</option> </div> </select>
Is is possible to get rid of this extra div?
Thanks in advance!