File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 */
77const baseConsoleError = console . error . bind ( console ) ;
88const keyWarningPattern = 'Warning: Each child in a list should have a unique "key" prop.' ;
9+ const valueFieldPattern = 'Warning: You provided a `value` prop to a form field without an `onChange` handler.' ;
910
1011// TODO: Patch out 'checked' warnings
1112
1213console . error = function ( ...args ) {
13- if ( typeof args [ 0 ] === 'string' && args [ 0 ] . startsWith ( keyWarningPattern ) ) {
14+ if ( typeof args [ 0 ] === 'string' && ( args [ 0 ] . startsWith ( keyWarningPattern ) || args [ 0 ] . startsWith ( valueFieldPattern ) ) ) {
1415 return ;
1516 }
1617 return baseConsoleError ( ...args ) ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export type PSCommand = {
112112 /**
113113 * Command syntax.
114114 * Disable explicitly by passing null.
115- * Start with a CMD
115+ * Start with a CMD.
116116 */
117117 syntax : string | null ;
118118 /**
You can’t perform that action at this time.
0 commit comments