Reproduction steps:
1. Open project “My project”
2. Open scene “Main”
3. Enter Play mode
4. Click on the Input Field on the left and observe the text above (“Toggling_inp”)
5. Press Enter
6. Observe the text above
Expected result: The text says “null” - once the input field is SetActive( false ), it is no longer selected in EventSystem.currentSelectedGameobject and calls its own OnDeselect method
Actual result: the text still says “Toggling_inp”
Reproducible with: 2021.3.25f1, 2022.2.20f1, 2023.1.0b17, 2023.2.0a15
Couldn’t test with: 2020.3.48f1 (can’t deactivate the Input Field)
Reproducible on: macOS Ventura 13.2.1 (Intel), Windows 10 (by the reporter)
Notes: Also reproducible in Standalone Player
Workaround: adding a listener to OnEndEdit that calls "EventSystem.current.SetSelectedGameObject( null )" and "OnDeselect(BaseEventData eventData)"