幸运飞艇停吗

ASP源碼.NET源碼PHP源碼JSP源碼JAVA源碼DELPHI源碼PB源碼VC源碼VB源碼Android源碼
當前位置:首頁 >> 網頁制作 >> web前端 >> React is changing a controlled input of type text to be uncontrolled

React is changing a controlled input of type text to be uncontrolled

來源:網絡整理     時間:2016-05-31     關鍵詞:

本篇文章主要介紹了"React is changing a controlled input of type text to be uncontrolled",主要涉及到方面的內容,對于web前端感興趣的同學可以參考一下: React警告提示:warning.js:44 Warning: AddAddress is changing a controlled input of ty...

ReactJINGGAOTISHI:

warning.js:44 Warning: AddAddress is changing a controlled input of type text to be uncontrolled. 
Input elements should not switch from controlled to uncontrolled (or vice versa). 
Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: http://fb.me/react-controlled-components
Warning: <Component> is changing a uncontrolled input of type text 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: 
http://fb.me/react-controlled-components

WENTIFENXI:

React Input dom uncontrolled 導致報警告

問題解決:

Change

<input {...this.props.fields.firstName}/>
to

<input {...this.props.fields.firstName} value={this.props.fields.firstName.value || ''}/>



<input type="text" placeholder="請輸入收貨人姓名" value={form.name || '' } />

以上就介紹了React is changing a controlled input of type text to be uncontrolled,包括了方面的內容,希望對web前端有興趣的朋友有所幫助。

幸运飞艇停吗 BENWENWANGZHILIANJIE:http://snifly.cn/article/detail_1422073.html

幸运飞艇停吗

相關圖片

相關文章