-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
This resolves https://github.com/withspectrum/spectrum/issues/2634, might need some testing @mxstbr |
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.
Thank you so much for taking the time to contribute! Unfortunately, we already have a PR open for this at #2731—since they were first I'll close this one.
Thanks again, and I hope you'll be back for another PR!
I think this PR was for a separate issue than #2731 - That being said, I can't repro a call where the thread edit flyout doesn't close after editing a thread. @denichodev do you have a gif or repro of the bug? |
Oh yeah, oopsie, totally my bad! 🙈 Reopening! |
What is needed here? Does it need testing for #2634 ? |
@cutjavascript - was hoping for repro steps from @denichodev; I can't seem to trigger the bug where the dropdown is still open after editing a thread |
@brianlovin Sorry for the late reply, was busy. Repro steps:
After doing some re-check, this PR actually reverse the behavior for hover and click. I'll check on it tomorrow 😄 |
@denichodev saw you wanted to look into this more, but in my local testing it seems to fix the bug. Did you want to check anything else here or are you good to ship? Only thing I could think of as a possible improvement here would be to just wrap this component in our {flyoutOpen && (
<div
style={{
position: 'fixed',
left: 0,
right: 0,
top: 0,
bottom: 0,
background: 'transparent',
zIndex: 3002,
}}
data-cy={'thread-dropdown-close'}
onClick={() =>
setTimeout(() => {
this.toggleFlyout(false);
})
}
/>
)} This is obviously pretty ugly. Would you be interested in trying to just wrap the dropdown in the You can see an example implementation of this in |
<3 this, but I think the behavior has been superseded by #2937 |
Status
Deploy after merge (delete what needn't be deployed)
(Wasn't sure if hyperion needs to be redeployed.)
Release notes for users (delete if codebase-only change)