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: make TouchBarPopover and TouchBarGroup work #27901
Conversation
86a37f7
to
5b8bd57
Compare
Release Notes Persisted
|
This has been merged 4 weeks ago, I thought that the yesterday v12 release could include it, but it's still broken, any ETA for the backport of the PR to v11 and v12 that are affected by the problem? |
@ggreco I forgot to add the proper backport labels for this process to be automated. I'll have to apply these backports manually. Thanks for checking in! |
* fix: use correct `orderedItem` touchbar property * fix: correct parent in touchbar group and popover * fix: preserve property hook order
@erickzhao has manually backported this PR to "12-x-y", please check out #28411 |
* fix: use correct `orderedItem` touchbar property * fix: correct parent in touchbar group and popover * fix: preserve property hook order
@erickzhao has manually backported this PR to "11-x-y", please check out #28412 |
Description of Change
Fixes #26615
257cca0: The
ordereredItems
property was renamed toorderedItems
, but this typo was never fixed at the Objective-C layer, leading to early exits when creatingTouchBarGroup
andTouchBarPopover
items.5b8bd57: As pointed out in #26615 (comment) and #26615 (comment), items inside a TouchBarGroup or TouchBarPopover would add themselves as a parent.
43e108b: Before this change, when adding a new
@ImmutableProperty
or@LiveProperty
, its constructor hook would be called before the existing hooks before it. This caused a bug when instantiating Popovers and Groups -- even though we set theid
property first, it would beundefined
when we used its value in the hook for thechild
property a few lines later.Tester code (adapted from #9025): https://gist.github.com/10e5c142126b439282b97cd762a24d55
cc @MarshallOfSound
Checklist
npm test
passesRelease Notes
Notes: Fixed bug where TouchBarPopover and TouchBarGroup were no longer rendering