-
Notifications
You must be signed in to change notification settings - Fork 574
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
Avoid TypeError
in useAnnouncements
#5551
Conversation
🦋 Changeset detectedLatest commit: 67e55f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
TypeError
in useAnnouncements
👋 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! |
size-limit report 📦
|
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.
👍
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/358253 |
🔴 golden-jobs completed with status |
* Revert "Revert "Select panel loading states (#4929)" (#5136)" This reverts commit f93eb9b. * Use published primer/behaviors * Revert snapshot change to TextInput * Huh ok never mind * Use role in test * Prevent active descendant from resetting when items change * Allow loading state to be managed by the user * Encounter the loading state for the initial state announcement * It's working * Cleanup * Fix linting issues * Revert snapshots * test(vrt): update snapshots * Backport #5551 to this PR * Fix auto-focus behavior * Add test to ensure focus behavior * Allow consumers to pass an inputRef; DRY up timeout cleanup; simplify nullish coercion * DRY up announcement code; restore useAnnouncements hook for non-SelectPanel cases * Fix types tests * Remove testing ID * Remove confusing componentManagesLoading control in async story --------- Co-authored-by: Cameron Dutro <[email protected]> Co-authored-by: francinelucca <[email protected]> Co-authored-by: Marie Lucca <[email protected]>
Closes https://github.com/github/primer/issues/4635
Changelog
New
Changed
TypeError
in production. TheactiveItem
variable may benull
.Removed
Rollout strategy
Testing & Reviewing
Merge checklist
- [ ] Added/updated tests- [ ] Added/updated documentation- [ ] Added/updated previews (Storybook)- [ ] Tested in Chrome- [ ] Tested in Firefox- [ ] Tested in Safari- [ ] Tested in Edge