dosubot[bot] commented on issue #35833: URL: https://github.com/apache/superset/issues/35833#issuecomment-3543800307
<!-- Greeting --> Hi @shivamsahu-tech! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The best way to resolve the dual scrollbar issue is to remove the getPopupContainer prop from both the DatabaseModal and the custom Select component for this dropdown. This allows Ant Design to render the dropdown in document.body (its default), which avoids the double scrollbars and clipping issues. This approach is consistent with UI/UX best practices and is already used in other parts of Superset to prevent similar problems. There’s no evidence in the codebase or recent PRs that removing getPopupContainer here would cause side effects, as its use is context-specific and not globally required. Adjusting container styles is possible but more complex and less maintainable than relying on the default dropdown behavior. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/84900503-2d9e-44f6-afdf-2e1745425cbc?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35833) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
