'Setting onBlur overrides default onBlur function
I am using a component from a library (react-native-searchable-dropdown) that already has some onBlur function implemented by default.
I want to add some additional functionality when the onBlur function is called but if I set the onBlur prop:
<SearchableDropDown ... onBlur={()=>{}} />
it overrides the default onBlur function and doesn't work as expected. I was wondering if there is any way to add additional functionality to onBlur without removing the default implementation?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|