Skip to content

Commit

Permalink
doc: document returnFocus default value
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jan 21, 2019
1 parent ec699e6 commit d78cc2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ I've got a good [article about focus management, dialogs and WAI-ARIA](https://
FocusLock has few props to tune behavior
- `disabled`, to disable(enable) behavior without altering the tree.
- `returnFocus`, to return focus into initial position on unmount(not disable).
> By default `returnFocus` is disabled, so FocusLock will not restore original focus on deactivation.
This is expected behavior for Modals, but it is better to implement it by your self.
- `persistentFocus`, default false, requires any element to be focused. This also disables text selections inside, and __outside__ focus lock.
- `autoFocus`, default true, enables or disables focusing into on Lock activation. If disabled Lock will blur an active focus.
Expand Down

0 comments on commit d78cc2e

Please sign in to comment.