Hi, there's a problem with calling focus on element that doesn't exists anymore.
The Uncaught TypeError is triggered on this line: https://github.com/selvagsz/react-power-select/blob/master/src/Select.js#L156
The source of the problem is that powerselect element no longer exist but it tries to call the focus method on it. I think the setTimeout should be assigned to an instance variable and once the Select component is about to be destroyed, this timeout should be cleared out.
Hi, there's a problem with calling focus on element that doesn't exists anymore.
The Uncaught TypeError is triggered on this line: https://github.com/selvagsz/react-power-select/blob/master/src/Select.js#L156
The source of the problem is that
powerselectelement no longer exist but it tries to call thefocusmethod on it. I think thesetTimeoutshould be assigned to an instance variable and once theSelectcomponent is about to be destroyed, this timeout should be cleared out.