Skip to main content

FocusRegistryProvider

Remembers the elements that open surfaces, so closing a surface can put focus back on the control that opened it, or on the map when that control is gone. Safari does not focus buttons on click, so focus is always moved with an explicit focus() call.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { FocusRegistryProvider } from "@mapcairn/map";

function FocusRegistryProvider(input: FocusRegistryProviderProps): JSX.Element;

Parameters​

  • { focusMap, children, }
  • input (FocusRegistryProviderProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/chrome/focusRegistry.tsx:39