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

[BUG] Doesn't scroll to selected option #236

Open
brilliantinsane opened this issue Dec 20, 2023 · 1 comment
Open

[BUG] Doesn't scroll to selected option #236

brilliantinsane opened this issue Dec 20, 2023 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@brilliantinsane
Copy link

Describe the bug
If one of the options is selected where you need to scroll to see it, after you reopen the select it is not "preselected" - it doesn't scroll to it like in the examples in the docs.

Expected behavior
It should scroll to the selected option.

Screenshots
Screenshot 2023-12-20 at 12 29 23

Video
https://github.com/MobileReality/react-native-select-pro/assets/34303783/eed8988d-d840-4f1d-9231-e724a0141e48

Environment (please complete the following information):

  • OS: [iOS/Android]
  • OS Version: iOS 17.0
  • React Native Version: 0.72.6
  • Device on which issue is presented: iPhone 15 Pro Simulator as well as my physical device iPhone 13

Additional context
Here is my code - the most basic example there is:

const TEST_DATA = [
  {
    label: 'test1',
    value: 'test1',
  },
  {
    label: 'test2',
    value: 'test2',
  },
  {
    label: 'test3',
    value: 'test3',
  },
  {
    label: 'test4',
    value: 'test4',
  },
  {
    label: 'test5',
    value: 'test5',
  },
  {
    label: 'test6',
    value: 'test6',
  },
  {
    label: 'test7',
    value: 'test7',
  },
  {
    label: 'test8',
    value: 'test8',
  },
  {
    label: 'test9',
    value: 'test9',
  },
  {
    label: 'test10',
    value: 'test10',
  },
  {
    label: 'test11',
    value: 'test11',
  },
  {
    label: 'test12',
    value: 'test12',
  },
];


<Select
   options={TEST_DATA}
/>

Also, I should mention that I have wrapped my app inside <SelectProvider />

Is there something I'm missing here? Something I'm doing wrong? The version of the package that I have installed is 2.2.3.

@brilliantinsane brilliantinsane added bug Something isn't working documentation Improvements or additions to documentation labels Dec 20, 2023
@TheProgamererZ
Copy link

@brilliantinsane Same Issue. No response from this team.

Btw please check out another issue that I raised in this section itself , if any help possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants