I am not sure if this is a real bug, but it seems that the two events "onChange" and "onSelect" are always carried out at the same time. Therefore, I do not fully understand the difference between these two functions. Maybe you can take a look at it and see if the event sequence fits.
I created a sample window showing each event when fired: [Login to see the link]
Output:
07.08.2023 22:33:44 - onChange()
07.08.2023 22:33:44 - onSelect()
It is based on your example in the documentation.