I'm using react-dropdown-select with the clearable option, but when I do clear the dropdown stays open, I'd like it to close once cleared. So far I tried to make a custom Select class and override its clearRenderer() callback prop to make use of the dropDown() method int it, something like that:
class MySelect extends Select {
clearRenderer = ({ props, state, methods }) => {
methods.dropDown('close');
};
}
but I can't get it to work.
I'm new to javascript, I'm probably missing something here, thank's for your help.