Hi Paulo,
You will have to define an event handler on the choices input for the mentioned use case.
Code Changes: DropdownSearch (Webblock) > Init (Client Action) > Init (JS Node)
Based on your use case, you can opt for any of the below-mentioned implementations.
1) Registering input change event handler
choices.input.element.addEventListener('change',
function () {
$actions.OnSearchInputChange(this.value);
});
OR
2) Registering keyup event handler
choices.input.element.addEventListener('keyup',
function () {
$actions.OnSearchInputChange(this.value);
});
Refer to the attached oml file.
I hope this helps you!
Kind regards,
Benjith Sam