Hello,
Is there a way to change value of an autocomplete form field (ajax-one) with a live component action ?
I've try this :
#[LiveAction]
public function forceEntity(): void {
$id = 9;
$this->formValues['entity']['autocomplete'] = $id;
}
HTML returned by this action contains an option with given id but this option is never integrated into tom-select after rerender.
Also, i've noticed a weird behaviour when an autocomplete form field (ajax one) is preset with a value : if I select another value, live component is well updated but if then I select back the initial value, no ajax call to update live component is done...
Hello, Is there a way to change value of an autocomplete form field (ajax-one) with a live component action ?
I've try this :
HTML returned by this action contains an option with given id but this option is never integrated into tom-select after rerender.
Also, i've noticed a weird behaviour when an autocomplete form field (ajax one) is preset with a value : if I select another value, live component is well updated but if then I select back the initial value, no ajax call to update live component is done...
Any idea ?
Thanks