h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

fix: Do not show selected tags in picker suggestions when no input is provided #1985 #2195

Closed marek-mihok closed 7 months ago

marek-mihok commented 7 months ago

The PR fulfills these requirements: (check all the apply)

The problem was the implementation of onEmptyResolveSuggestions callback. As Fluent API description says, it is

A callback for what should happen when suggestions are shown without input provided. Returns the already selected items so the resolver can filter them out.

In our case it was returning initial tags (() => tags) instead of filtered ones.

https://github.com/h2oai/wave/assets/23740173/6c7ab461-ca83-418a-bed7-3c3d166d6b89

Closes #1985