Additionally, updating the loadingLabel prop doesn't change the loading text until loading is toggled off and back on.
🪜 How to reproduce
Tell us the steps to reproduce the problem:
Go to the React Playground storybook in Select (single)
click to expand the Select
in the controls, toggle 'loading' to true
you'll see the select switch to a loading state
Toggle 'loading' to false
The select won't show results, it remains loading. You'll find that expanding and collapsing the select doesn't fix it
📸 Screenshots or code
🧐 Expected behaviour
Switching loading to false should show results / no results.
Also, in the Playgrounds (single/searchable select in React, multi-select in Canary) the loadingLabel should update loading text whenever the prop is changed
Summary of the bug
Discovered whileintroducing Playground to ic-select
It seems that the loadingHandler function doesn't consider the loading prop changing to
false
Additionally, updating the loadingLabel prop doesn't change the loading text until loading is toggled off and back on.
🪜 How to reproduce
Tell us the steps to reproduce the problem:
📸 Screenshots or code
🧐 Expected behaviour
Switching loading to false should show results / no results. Also, in the Playgrounds (single/searchable select in React, multi-select in Canary) the loadingLabel should update loading text whenever the prop is changed