In #491 using onChange to handle select all & deselect all click,
the if condition didn't bypass select one click successfully (it happens when the selectedKeys already had 1 key), causing onSelect & onChange to update selectedKeys at the same time, so there are duplicated keys inside.
Description
In #491 using onChange to handle select all & deselect all click, the if condition didn't bypass select one click successfully (it happens when the
selectedKeys
already had 1 key), causing onSelect & onChange to updateselectedKeys
at the same time, so there are duplicated keys inside.