Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Popup: Added check for onBlur to prevent focus setting focus to be disabled in chrome",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ export class Popup extends BaseComponent<IPopupProps, IPopupState> {
this._containsFocus = true;
}

private _onBlur(): void {
this._containsFocus = false;
private _onBlur(ev: React.FocusEvent<HTMLElement>): void {
if (this._root.value && this._root.value.contains(ev.relatedTarget as HTMLElement)) {
this._containsFocus = false;
}
}
}