WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Warning: A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. #29180

Closed mahnunchik closed 3 years ago

mahnunchik commented 3 years ago

Description

Warning: A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components

Step-by-step reproduction instructions

  1. Install latest stable WP 5.6.1
  2. Do not install any plugins
  3. Go to Gutenberg editor

Expected behaviour

No errors in the JS console

Actual behaviour

Errors in the JS console:

Warning: A component is changing an uncontrolled input of type undefined to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components

Screenshots or screen recording (optional)

Снимок экрана 2021-02-20 в 17 58 23

Code snippet (optional)

WordPress information

Device information

talldan commented 3 years ago

@mahnunchik It looks like this is from the Yoast plugin. The SnippetEditorFields component isn't in gutenberg, but searching wpdirectory shows Yoast: https://www.wpdirectory.net/search/01EZ4DCRPD8XXZ9PSXNNJMYSCQ