Allow input components to be able to set the underline input component they use? #6371
Closed
Toshinaki
started this conversation in
Feature requests
Replies: 1 comment
-
This feature will not work correctly. There are a lot of things that will go wrong with this approach: starting with the inability to handle types correctly and ending with components api differences (some components call onChange function with event object, some call with value). |
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
-
I'm trying to create a delyed input with lodash debounce.
And there're
NumberInput
,PasswordInput
,Textarea
andTextInput
.Now I'm creating a wrapper for all four types of input to implement this.
Basically looks like this:
And I'm writing this same logic four times.
It would be great if we can extend
Input
and create one baseDelayedInput
, and pass it as a prop to all types of inputs:Or build this debounce feature into the
Input
, and enable/disable with a prop (enableDelay
)?Beta Was this translation helpful? Give feedback.
All reactions