Replies: 9 comments 3 replies
-
Hello Ronald, Can you provide a reproducible example? |
Beta Was this translation helpful? Give feedback.
-
I don’t have a very clean code example but what happens is if you get the select just right near the bottom of the screen it will try to drop down when it should drop up. I think it may only happen when filtering is enabled. Here’s a screenshot to show you what it looks like. As you can see there isn’t enough room to display even a single option.
… On Sep 7, 2022, at 5:53 AM, Abdallah AlHalees ***@***.***> wrote:
Hello Ronald,
Can you provide a reproducible example?
I cannot reproduce the issue in our demos <https://cloudscape.design/examples/react/form.html> or playground <https://cloudscape.design/components/select/?tabId=playground&example=with-auto-filtering>
—
Reply to this email directly, view it on GitHub <#250 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA2VDLMHI72EXGKXNMQQZT3V5BXZDANCNFSM6AAAAAAQGHIVGY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Here's the code sandbox. The issue isn't easy to replicate because the position has to be just right. Here's the link to the sandbox: https://codesandbox.io/s/xenodochial-platform-zif0zt?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
-
If you add a bunch of items and scroll to where the divider is just above the bottom of the page like in the screen shot above and change the focus from another select to the one at the bottom of the page it's easy to replicate. |
Beta Was this translation helpful? Give feedback.
-
Hello Ronald, the component determines its direction based on the amount of items and the available space above and below the component. We recommend to show the full list of items initially, and reduce that list when search text is entered. You can achieve this by removing the condition |
Beta Was this translation helpful? Give feedback.
-
In my application the list contains about 10,000 items and they're being fetched from the API. I could get the first 20 if there's no search text but it's kind of a waste. That's a good work around but this is still a bug. |
Beta Was this translation helpful? Give feedback.
-
I am doing asynchronous loading and have changed the behavior so that the first 20 items are shown when the select becomes active. The thing I don't like is having to fetch them because there is a barely non-zero chance the item you're looking for is there so it seems like a waste of bandwidth. |
Beta Was this translation helpful? Give feedback.
-
If you have a select that has filtering enabled and open it near the bottom of the page the drop down will still try to open down instead of up even if it doesn't have room to display any options.
Beta Was this translation helpful? Give feedback.
All reactions