onChange not triggered when renderInput is set
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
When I set the `renderInput` prop, the `onChange` event is never triggered. Even if I add the `onChange` in the input, it does not work. Input and styled input are rendered correctly though.
```
console.log(value)}
renderInput={
(props, open, close) => (
)
}
/>
```
Running version is 2.16.3.
Is it a bug or something is missing?
Contributor guide
Research direction
Start by reproducing the issue with the renderInput example in the report and trace the renderInput entry point where the input props and callbacks are passed through. Check why onChange is not observed when the custom input is used. Done means the supplied onChange callback fires for changes while the rendered input, open behavior, and close behavior still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100