Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search input autofocus not working in Android at first time multiselect click #187

Open
shanu95 opened this issue Aug 4, 2021 · 0 comments

Comments

@shanu95
Copy link

shanu95 commented Aug 4, 2021

At 1st time Multiselect drop down click not open keyboard automatically. This problem is only on Android. In iOS it's working properly. I have added textInputProps={{autoFocus:true}} but still the same. Any fixes?

               `<Scrollview>
                <MultiSelect
                hideTags
                items={items}
                flatListProps={{keyboardShouldPersistTaps: 'handled'}}
                uniqueKey="Id"
                **textInputProps={{autoFocus:true}}**
                onSelectedItemsChange={onSelectedItemIDChange}
                selectText="Product"
                single={true}
                fixedHeight={true}
                selectedItems={selectedItemID}
                ref={multiSelect}
                searchInputPlaceholderText="Search Products..."
                onChangeInput={text => console.log(text)}
                tagRemoveIconColor="#CCC"
                tagBorderColor="#CCC"
                tagTextColor="#CCC"
                selectedItemTextColor="#10b34c"
                selectedItemIconColor="#10b34c"
                itemTextColor="#000"
                styleDropdownMenuSubsection={{
                  borderColor: 'white',
                  marginBottom: -10,
                }}
                styleTextTag={{
                  fontSize: 14,
                  marginRight: 10,
                }}
                tagContainerStyle={{
                  height: 32,
                  marginLeft: 10,
                  marginRight: 10,
                  display: 'flex',
                  justifyContent: 'center',
                  paddingLeft: 5,
                  paddingRight: 5,
                }}
                styleListContainer={{
                  marginBottom:10,
                }}
                styleSelectorContainer={{paddingBottom:40}}
                displayKey="Name"
                searchInputStyle={{color: '#CCC'}}
                submitButtonColor="#10b34c"
                submitButtonText="Submit"
                hideSubmitButton={true}
              />
              </Scrollview>`
@shanu95 shanu95 changed the title Search input autofocus not working at first time multiselect click Search input autofocus not working in Android at first time multiselect click Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant