feat: allow Select to more easily support filtering via extension #6896
Labels
area:fast-foundation
Pertains to fast-foundation
community:request
Issues specifically reported by a member of the community.
馃檵 Feature Request
We have a need to provide filtering capability for the
Select
, which was a mostly painless process, save for one unfortunate implementation hack. Ultimately, we had to provide an override to theset value
implementation so we could reference our overriddenoptions
reference which returns a filtered set of options (just like theCombobox
). However, in theSelect
base implementation it ultimately sets its private_value
field. The only solution I had was to sidestep our linter and do something likethis['_value'] = newValue;
.I'm not sure if the ultimate answer is to make
_value
protected
or some other more official extensibility support, but I think the ideal results in clients not having to write the kind of code I mention above.馃 Expected Behavior
I should be able to extend
Select
to provide filtering support without having to write non-type safe code.馃槸 Current Behavior
Couldn't come up with a way to provide the behavior I needed without writing non-type safe code (ala
this['_value'] = newValue;
).馃拋 Possible Solution
Make
_value
protected
.馃敠 Context
馃捇 Examples
The text was updated successfully, but these errors were encountered: