Skip to content

defaultIndex property does not work #138

@marcin-solvenet

Description

@marcin-solvenet

Hi,

Thanks for awesome and useful library!.

O noticed that probably defaultIndex is ignored, any value I set 0,1,3 always get default text 'Please select...' - Tested on iOS

Please have a look when you have time

Thanks
Marcin

<ModalDropdown options={[strings.veryGoodCondition, strings.goodCondition, strings.sufficientCondition, strings.badCondition]}
defaultIndex={0}
onSelect={(idx, value) => {
this.props.updateIssueStatus(item.id, this.conditionStatusToIndex[idx], value);
}}
style={controlStyles.dropDownContainerStyle}
textStyle={{}}
dropdownStyle={controlStyles.dropDownStyle}
dropdownTextStyle={controlStyles.dropDownItemTextStyle}
textStyle={controlStyles.dropDownItemTextStyle}/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions