React-native-web: Password field is not contained in a form

Created on 29 Oct 2018  路  4Comments  路  Source: necolas/react-native-web

The problem
[DOM] Password field is not contained in a form:

How to reproduce
Simplified test case:
https://codesandbox.io/embed/7jwz9jjr1

Steps to reproduce:

  1. Add secureTextEntry to a TextInput field.

Expected behavior
No warnings from the browser.

  • React Native for Web (version): 0.9.4
  • React (version): 16.5.1
  • Browser: Chrome - 70.0.3538.77

Most helpful comment

Use accessibilityRole=form on the outer View

All 4 comments

Use accessibilityRole=form on the outer View

So I've just upgraded to RN 59 and my native build is throwing an error Invalid accessibility role value: form

Use Platform.select

Was this page helpful?
0 / 5 - 0 ratings