185
Views
1
Comments
OnChange not being triggered by clearing Input
Question

Hello there, 

I have a number of autocomplete inputs in my application. Both a double click, or starting to type will show the correct list. However if you delete or clear the input it does not trigger the onChange and the list is not updated. Is there a workaround for this? I have tried changing the Type on the input to "search" but even using the 'x' it doesnt call the onChange. 

Any help would be greatly appreciated.



2020-02-28 09-46-54
Eduardo Jauch

Hi Christopher,

What do you mean by "...the list is not updated".
It's been a while since I used it, but if I remember, the complete list appears when you double click, and the list appears when you starting typing.

If my memory doesn't fail me, when you erase, the list disappears...
It is not disappearing?

If no, the only way to solve this, I think, would be cloning the RichWidgets module and changing the JavaScript used by this widget. It highjack the onchange event.

Cheers.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.