3.9.2.
The use case is pretty simple. Make an input and select it. Disable its parent while it is selected. I would expect it to be automatically unselected when this happens, but it is not, since to me having something selected implies it is selectable in the first place.
Add an OnDisable and set IsSelected to false on the input. Note that even after disabling, and then re-enabling the container gameobject, the input is still selected.
This particular case is in a tabbed dialog with a bunch of tabs with nested scroll views. On several of the content pages are inputs (used for searching the contents of that tab), and I would like to deselect the inputs if you close the dialog (with escape) while you have them selected (or you die and I force the window closed).