react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Do not call onSelect when selection prop changes.

Open mixtur opened this issue 2 years ago • 1 comments
trafficstars

Otherwise the component cannot really be called controlled.

Whoever uses the component should already know that selection has changed. They caused it! No need to notify them.

The only things that the component should report is what user does to the component, not what outside code does.

mixtur avatar Nov 14 '23 15:11 mixtur

Totally agree here.

jameskerr avatar Nov 15 '23 22:11 jameskerr