Skip to content

Commit c6cfbab

Browse files
mendyEdriethanshar
andauthored
Picker multi select support - Override throttle time (#894)
* pass dialog events to picker custom model to support multi-selection * refactor code to make label text decision more intuitive * Made label source selection more intuitive * changed test uut function to match new logic -[failed tests] * fixed eslint issue * PickerItem throttle time set to 0, to avoid selection-delay behaviour Co-authored-by: Ethan Sharabi <[email protected]>
1 parent a50533f commit c6cfbab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/picker/PickerItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class PickerItem extends BaseComponent {
131131
onLayout={isSelected ? this.onSelectedLayout : undefined}
132132
disabled={disabled}
133133
testID={testID}
134+
throttleTime={0}
134135
{...this.extractAccessibilityProps()}
135136
>
136137
{renderItem ? renderItem(value, this.props, this.getLabel()) : this.renderItem()}

0 commit comments

Comments
 (0)