Feature Request: Pass index of option to filterOption
#4429
togakangaroo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For
filterOption
, you should pass a third parameter of the option index, possibly even a fourth with the entire option array itself.Firstly, that more akin to what is expected for filtering callbacks
But more importantly that would allow you to implement filtering optimization logic such as
In fact I would go a step further and say also pass a mutable object as the "context" of a single pass through filtering all options. Then we could do
Beta Was this translation helpful? Give feedback.
All reactions