-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: Popover in Multi select widget inside modals breaks away from the widget #13129
Conversation
…e widget -- Sets popover container to the closest canvas
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
/ok-to-test sha=43ca423 |
Unable to find test scripts. Please add necessary tests to the PR. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2194713642. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2194713642. Click to view performance test results
|
const node = _menu.current; | ||
if (Boolean(node?.closest(`.${MODAL_PORTAL_CLASSNAME}`))) { | ||
return document.querySelector( | ||
`.${MODAL_PORTAL_CLASSNAME}`, | ||
) as HTMLElement; | ||
} | ||
return document.querySelector(`.${CANVAS_CLASSNAME}`) as HTMLElement; | ||
return node?.closest( | ||
`${SELECT_DROPDOWN_CONTAINER_SELECTOR}`, | ||
) as HTMLElement; | ||
}, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make getting the Closest canvas widget into a utility function rather than repeating this across
…e widget -- Makes getDropdownPosition as a widget utility function
…e widget -- Rename getDropdownPosition to getCloesetCanvas
/ok-to-test sha=0771f23 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2195755869. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2195755869. Click to view performance test results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Seems like related tests are failing, Please check @Tooluloope |
/ok-to-test sha=7ab05c4 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2531769549. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2531769549. Click to view performance test results
|
/ok-to-test sha=5af2839 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2535378603. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2535378603. Click to view performance test results
|
/ok-to-test sha=31f91f6 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2539059851. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2539059851. Click to view performance test results
|
/ok-to-test sha=43ecd36 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2539327948. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2539327948. Click to view performance test results
|
Description
When I add a multi-select inside a modal with options exceeding the height to see a scroll. After reaching the end of the scroll the multi-select popover breaks away from the modal.
Fixes #12161
Fixes #11485
Type of change
How Has This Been Tested?
Checklist:
Test coverage results 🧪
🟢 Total coverage has increased