fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Focus lost after Dialog close

Open benkaiser opened this issue 9 years ago • 1 comments

Bug Report

  • Package version(s): (latest)
  • Browser and OS versions: (all)

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? No

Requested priority: High

Describe the issue:

https://github.com/OfficeDev/office-ui-fabric-react/blob/78e462bc936350fee2806ee0e70d523e8deee9b5/packages/office-ui-fabric-react/src/components/Dialog/Dialog.tsx

This file looks for a bunch of FocusTrapZone props in it's props, but those props aren't defined on the Dialog component.

Actual behavior:

No control over focus after Dialog closes.

Expected behavior:

I should be able to pass these properties to control the FocusTrapZone:

elementToFocusOnDismiss
ignoreExternalFocusing
forceFocusInsideTrap
firstFocusableSelector
closeButtonAriaLabel
isClickableOutsideFocusTrap

benkaiser avatar Apr 27 '17 23:04 benkaiser

IDialogProps extends IAccessiblePopupProps to give Dialog access to those focus properties. Please reopen if there are any issues

erichdev avatar Oct 12 '17 20:10 erichdev