Skip to content
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

SelectBox Custom: Hide Drop-down on Dispose. Fixes: #40962 #40974

Merged
merged 1 commit into from
Dec 31, 2017

Conversation

cleidigh
Copy link
Contributor

@cleidigh cleidigh commented Dec 31, 2017

@bpasero
@Tyriar
@isidorn
Happy New Years ! 🎆 🎊

Been great working with you guys this year, look forward to the next 👍

When the panel is closed while the Drop-down is open it does not receive a blur event which is how the Drop-down is usually closed. I tried using a MutationObserver without luck, had to do the hide within the dispose.

public dispose(): void {
this.hideSelectDropDown(false);
this.toDispose = dispose(this.toDispose);
}

Seems indirect, anything more appropriate?

Cheers

@cleidigh cleidigh self-assigned this Dec 31, 2017
@cleidigh cleidigh changed the title 👺SelectBox Custom: Hide Drop-down on Dispose. Fixes: #40962 SelectBox Custom: Hide Drop-down on Dispose. Fixes: #40962 Dec 31, 2017
@cleidigh cleidigh merged commit ded9b07 into microsoft:master Dec 31, 2017
@cleidigh cleidigh deleted the selectbox-panel-close/bug branch December 31, 2017 01:26
@cleidigh cleidigh added this to the December 2017/January 2018 milestone Dec 31, 2017
@cleidigh
Copy link
Contributor Author

Fixes: #40962

@bpasero
Copy link
Member

bpasero commented Jan 3, 2018

I think this way is fine, good catch.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants