tagify icon indicating copy to clipboard operation
tagify copied to clipboard

In Select Mode, only change input once when changing values

Open CarlosFdez opened this issue 2 years ago • 2 comments

First of all, big thanks for working on this. This library so far has been very helpful for the Pathfinder 2e system for Foundry, and for lists of validated traits it has been much better than the way we've been doing it before.

So currently, for tagify controls in select mode, it seems that whenever you change the selected value when a value has already been selected, it changes the associated input twice, once to clear the data, and again to set the new data. It would be really nice if the input was changed only once to the final result, that way the input change event fires once for the new result. Right now a DB update and re-render is tied to that on change event in what I'm working on, swallowing the second update whole.

CarlosFdez avatar Sep 06 '22 07:09 CarlosFdez

Thanks Carlos! I will look into it

yairEO avatar Sep 07 '22 07:09 yairEO

Is this really an "enhancement" request rather than a bug report? Making a selection once causes two change events to fire.

stwlam avatar Dec 30 '22 23:12 stwlam