autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

Empty event

Open kobykorman opened this issue 10 years ago • 7 comments

I can't seem to find a way to react to an empty result, no event is triggered specifically on empty, and I can't find anything in autocompelete:shown to hint me of that. Is there something I'm missing?

I'm trying alternative empty approaches like changing input color, icon, etc.

kobykorman avatar Jun 20 '16 15:06 kobykorman

Correct, I'll add an event; it makes a lot of sense.

redox avatar Jun 20 '16 20:06 redox

We added a "clear" event in places

vvo avatar Jun 20 '16 20:06 vvo

We added a "clear" event in places

Yes definitely something we'll also need to backport.

redox avatar Jun 20 '16 20:06 redox

Yes definitely something we'll also need to backport.

But empty and clear are the same right?

vvo avatar Jun 20 '16 20:06 vvo

But empty and clear are the same right?

Nope, empty is when the underlying datasets are not returning any results. On the other hand clear is when you press the right cross, right?

redox avatar Jun 20 '16 21:06 redox

ohhh, tricky difference. Yes clear is when the query is emptyied, empty is when the datasets are returning no results.

Not sure we want to name it empty in the case of an empty dataset, it's very close to the "empty query" case no?

vvo avatar Jun 20 '16 21:06 vvo

Not sure we want to name it empty in the case of an empty dataset, it's very close to the "empty query" case no?

Hmmm, I think it's OK because it fits the empty wording we're already using for templates.

redox avatar Jun 20 '16 21:06 redox