mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-26 09:14:15 +08:00
Ensure that programmatic focus can be moved to any element. Each instance of a primitive component type (e.g., `View`, `Text`, etc.) includes a `focus` method. However, on the web only certain elements can receive programmatic focus by default: those that can also receive keyboard focus, e.g., `a`, `button`, `input`, etc. All other element types must set `tabIndex="-1"` in order to be programmatically focusable without also being focusable via keyboard or mouse. Fix #1099