-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiSuperSelect] Dropdown not rendering properly #3565
Comments
Ahh, I know why. It's because it's using the popover service which restricts the popover from getting cc @thompsongl |
EuiSuperSelect does not use EuiInputPopover, just the standard EuiPopover service. Passing a |
We should probably get it to use the Input one anyway? Seems most appropriate usage. |
Can I work on this one? |
@shrey go for it, you're on a roll. |
@snide Thanks :) btw, How do I check if the changes actually work? because on changing it through the console, it seems fine |
Hi @shrey, As @cchaos described this issue happens when the EuiSuperSelect is close to a window edge. A way to test is to put the EuiSuperSelect close to the browser window edge. For example on the top left corner with a fixed position. To do that you can edit the <div style={{ position: 'fixed', top: 0, left: 0, width: 400 }}>
<EuiSuperSelect
options={options}
valueOfSelected={value}
onChange={value => onChange(value)}
/>
</div> |
I noticed that when we open the EuiSuperSelect and components that reuse this component, in CodeSandBox or with Create React App the dropdown doesn't render properly. It moves 16px to the right:
Example:
https://codesandbox.io/s/example-31jfn
The text was updated successfully, but these errors were encountered: