Select menu rendering #17
-
It's very intermittent but if you use the select menu the options are outside the select. here is my code If you review my screen shot you can see they are listed beside the select and when the rux-select is inspected the select is closed before the options. |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
Try using the React-wrapped component (camelCase) instead-- Our React wrapper uses our Web Components under the hood. is the wrapper version, is just the plain web component (with all its React flaws). I realize all of our docs only mention the web component version so I can see this being confusing. We'll put some more thought into documenting that better. As for the options being rendered outside the select, we'll take a look at that more. |
Beta Was this translation helpful? Give feedback.
-
We've spun up a codesandbox using your example code here. |
Beta Was this translation helpful? Give feedback.
-
I haven't completely confirmed this yet but I think it has something to do
with the data coming in over a websocket. Every other refresh the options
appear inside the select. On the others they are outside the select.
…On Wed, Sep 22, 2021 at 10:20 AM Micah Jones ***@***.***> wrote:
We've spun up a codesandbox using your example code here.
<https://codesandbox.io/s/shy-forest-v3k10?file=/src/App.js>
Because of the way React interacts with web components, custom events such
as our rux-change won't be heard unless refs are set. To prevent having to
do this, we've created the @astrouxds/react package
***@***.***/react> that wraps our Stencil
web components in React, thus giving it all the normal functionality.
We haven't been able to reproduce the options appearing outside of the
rux-select, so please feel free to fork that sandbox and reproduce it, and
we will take a look. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/RocketCommunicationsInc/astro-components-stencil/discussions/233#discussioncomment-1370567>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFUROBEJU47QHSEWLFG7N43UDH637ANCNFSM5EPQRIMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
Try using the React-wrapped component (camelCase) instead--
<RuxSelect></RuxSelect>
instead of<rux-select></rux-select>
That should get the change event working properly.Our React wrapper uses our Web Components under the hood. is the wrapper version, is just the plain web component (with all its React flaws). I realize all of our docs only mention the web component version so I can see this being confusing. We'll put some more thought into documenting that better.
As for the options being rendered outside the select, we'll take a look at that more.