-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat(settings): Add Dropdown component #1373
Conversation
f9bbc5a
to
a65e516
Compare
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.
Given that we still need to add unit tests, we may want to break the refactor into its own PR.
69576fa
to
b46f00d
Compare
src/lib/viewers/controls/hooks/__tests__/useClickOutside-test.tsx
Outdated
Show resolved
Hide resolved
src/lib/viewers/controls/hooks/__tests__/useClickOutside-test.tsx
Outdated
Show resolved
Hide resolved
activeItem.focus(); | ||
} | ||
}, [activeItem, isActive]); | ||
if (!isActive) { |
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.
Is this needed? It doesn't look like it was present before.
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.
Yeah it's needed because SettingsFlyout
doesn't play nice with multiple instances sharing the same activeRect
. We can look to revert this with a Flyout
mixin like we discussed earlier
b46f00d
to
af1cf43
Compare
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, though I think we're on the very edge of reviewable in terms of lines changed here.
f8113fa
to
243318e
Compare
TODO:
Listbox: