📝 [RFC] Support source in the onSearch handler of Input Component when the value had changed #44454
kiner-tang
announced in
RFCs - archive
Replies: 1 comment
-
Completed in #44457 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Currently, Input.search will fire onSearch event when the clear button is clicked. Sometimes the user does not know what the trigger is for, so when we fire onSearch events, You should tell the user what the trigger source is so that you can make logical decisions and take special actions.
Motivation
As mentioned above and mentioned #44371, we should pass source which user fire into onSearch hander.
API
Example
Beta Was this translation helpful? Give feedback.
All reactions