re-com icon indicating copy to clipboard operation
re-com copied to clipboard

Filter issue when using hiccup for labels in multi-select

Open Gregg8 opened this issue 4 years ago • 0 comments

When using hiccup for labels in the multi-select component, the filter text boxes end up searching within the entire hiccup.

For example, if a label contains [:div {:style {:color "red"} "Violets are blue"] then the filter text boxes would match this line if you type "red".

One suggestion would be to add a :search-text-fn argument which returned "Violets are blue" in the above example.

This could just be a keyword (e.g. point it right back to the :label data) which already contains the original string. That being the case, the sensible default for :search-text-fn would be :label.

Gregg8 avatar Sep 01 '21 04:09 Gregg8