-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TS Strict update react-aria 'b' and 'L' #3930
Conversation
# Conflicts: # packages/@react-aria/landmark/src/useLandmark.ts # packages/@react-aria/landmark/stories/Landmark.stories.tsx # packages/@react-aria/landmark/test/useLandmark.test.tsx
Build successful! 🎉 |
# Conflicts: # packages/@react-aria/landmark/src/useLandmark.ts
Build successful! 🎉 |
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.
Just one nit, but otherwise looks fine to me
}, 100); | ||
}); | ||
}) as EventListener); |
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.
why?
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.
# Conflicts: # tsconfig.json
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
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
@@ -244,10 +244,10 @@ class LandmarkManager implements LandmarkManagerApi { | |||
private closestLandmark(element: Element) { | |||
let landmarkMap = new Map(this.landmarks.map(l => [l.ref.current, l])); | |||
let currentElement = element; | |||
while (currentElement && !landmarkMap.has(currentElement) && currentElement !== document.body) { | |||
while (currentElement && !landmarkMap.has(currentElement as FocusableElement) && currentElement !== document.body && currentElement.parentElement) { |
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.
nit: make the type of the argument FocusableElement
so it is only needed in one place?
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.
Sure will make a followup
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.
urgh, merge conflicts, I'll take care of it here since I'll have to get a new review anyways
Build successful! 🎉 |
# Conflicts: # packages/@react-aria/listbox/src/useOption.ts
46a0046
Build successful! 🎉 |
Build successful! 🎉 |
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
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } @react-aria/landmarkuseLandmark useLandmark {
props: AriaLandmarkProps
- ref: MutableRefObject<FocusableElement>
+ ref: RefObject<FocusableElement>
returnVal: undefined
} |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: