palantir/blueprint
ItemPredicate make onActiveItemChange fired twice and active item isn't the good one
オープン
#4,192 opened on 2020/06/25
P2Package: selectType: bughelp wanted
Repository metrics
- Stars
- (20,263 個のスター)
- PR merge metrics
- (平均マージ 43d 10h) (30d で 27 merged PRs)
説明
Environment
- Package version(s): 3.28.1
- Operating System: Mac OS - latest
- Browser name and version: chrome Version 83.0.4103.106 (Build officiel) (64 bits)
Steps to reproduce
- Define a Select component with a custom item list render and item render
- Add itemPredicate function
- select an item
- Open the Select back ( active item isn't item selected )
Actual behavior
I don't know why but onActiveItemChange is fired twice when a itemPredicate is defined. First you get the selected item and just after onActiveItemChange is fired with the first item in the list with no reason.
Expected behavior
ActiveItem is the selected item when you open the list after a select.