Skip to content

Fix #4027 - #5208

Closed
siddharthkp wants to merge 6 commits into
mainfrom
fix-4027
Closed

Fix #4027#5208
siddharthkp wants to merge 6 commits into
mainfrom
fix-4027

Conversation

@siddharthkp

@siddharthkp siddharthkp commented Nov 1, 2024

Copy link
Copy Markdown
Member

Goal: Once SelectPanel opens upwards, do not resize it anymore.

Closes #

Changelog

New

Changed

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@changeset-bot

changeset-bot Bot commented Nov 1, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b316bb1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@siddharthkp siddharthkp self-assigned this Nov 1, 2024
@github-actions github-actions Bot added the staff Author is a staff member label Nov 1, 2024
@github-actions

github-actions Bot commented Nov 1, 2024

Copy link
Copy Markdown
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions Bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Nov 1, 2024
@github-actions
github-actions Bot temporarily deployed to storybook-preview-5208 November 1, 2024 15:45 Inactive
@github-actions

github-actions Bot commented Nov 1, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 98.59 KB (+0.11% 🔺)
packages/react/dist/browser.umd.js 98.85 KB (-0.03% 🔽)

observer.disconnect()
}
}, [target])
}, [targetEl])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for reviewer: Adding a ref as dependency isn't a recommended pattern as changes to the value of the ref does not cause the effect to re-run. Replaced the ref with targetEl instead

focusTrapSettings,
focusZoneSettings,
side = 'outside-bottom',
side = overlayProps?.['anchorSide'] || 'outside-bottom',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do this just yet. Pull this out to another PR of it's own


useResizeObserver(updatePosition)
useResizeObserver(updatePosition) // watches for changes in window size
useResizeObserver(updatePosition, floatingElementRef as React.RefObject<HTMLElement>) // watches for changes in floating element size

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for self: This needs to be opt-in. A bit risky to always do this because it would keep jumping around.

@jonrohan
jonrohan deleted the fix-4027 branch May 9, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant