tree-select icon indicating copy to clipboard operation
tree-select copied to clipboard

undocumented breaking change - ref methods focus & blur missing

Open szamanr opened this issue 3 years ago • 0 comments

i upgraded from 4.3.0 to 4.8.0. as you can see in the diff, the focus and blur methods are no longer exposed, so i'm getting errors when trying to use it like:

import ReactTreeSelect from "rc-tree-select";

const ref = createRef<ReactTreeSelect>();
...
selectViewsRef.current.focus()

this is a breaking change in a minor version upgrade. please follow semver and do not introduce breaking changes in non-major upgrades. also, as far as i can tell, this change is not documented anywhere in the changelog / release notes. please document it.

for now i'll be pinning 4.3.0 and looking for an alternative library.

szamanr avatar Apr 14 '22 13:04 szamanr