Warning: Unknown prop `html` on <div> tag. about react-contenteditable HOT 12 CLOSED lovasoa commented on May 26, 2024 Warning: Unknown prop `html` on tag.from react-contenteditable. Comments (12) lovasoa commented on May 26, 2024 1 Oooh! I think I forgot to push the latest update to NPM!from react-contenteditable. WendellLiu commented on May 26, 2024 I tried on React v15.3.1 but this warning didn't jump out. The warning appeared only If I modify the code to pass html to div. return React.createElement( this.props.tagName || 'div', { ...props, ref: (e) => this.htmlEl = e, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onPaste: this.onPaste, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: {__html: html}, html // this line }, this.props.children ); hope it's helpfulfrom react-contenteditable. lovasoa commented on May 26, 2024 I'm not sure I understand... Of course, if you add html as a prop on a div, you get a warning. But why did you do that in the first place?from react-contenteditable. WendellLiu commented on May 26, 2024 @lovasoa You are talking about my example code? If so, this example code just show the only way I can get the same warning. On the other hand, I can't get the same warning on the normal case.from react-contenteditable. lovasoa commented on May 26, 2024 Yes, so there is no warning, no problem. Why did you open this issue?from react-contenteditable. lovasoa commented on May 26, 2024 Oooh, sorry, I just realized it's not you who opened the issue! Sorry.from react-contenteditable. WendellLiu commented on May 26, 2024 I just doubt that @mewben maybe did this mistake .from react-contenteditable. lovasoa commented on May 26, 2024 @mewben Do you see this warning with the latest react and latest react-contenteditable ?from react-contenteditable. mewben commented on May 26, 2024 Still getting the same error on a fresh install of create-react-app node -v : v6.3.1 npm -v : 3.10.5 os: Mac from react-contenteditable. lovasoa commented on May 26, 2024 Done! Sorry!from react-contenteditable. lovasoa commented on May 26, 2024 Please confirm that I can now close this issue :)from react-contenteditable. mewben commented on May 26, 2024 Thanks. closing now.from react-contenteditable. Related Issues (20) Switch to edit mode only on double click HOT 1 When using Firefox and pressing enter, a <br> tag is added to the saved html HOT 1 Custom components in html? HOT 1 Retain caret position while dynamically changing the rendered html HOT 2 cursor outside of block HOT 3 expose props API to enable selection range get & set HOT 1 auto height support vertical align center support as a props option HOT 3 accept image Contenteditable should accept aria, for to accommodate label HOT 1 ContentEditable' cannot be used as a JSX component HOT 4 ability to set inputmode if ContentEditable in contenteditable="true", no trigger onChange HOT 1 Is this component usable in Typescript? vim cursor popping up to top of view when hit escape how to set custom style in html HOT 1 Getting caret line number. Enable passing custom value for active state Paste wont work some times. Content color is changing to red Recommend Projects React A declarative, efficient, and flexible JavaScript library for building user interfaces. Vue.js 🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web. Typescript TypeScript is a superset of JavaScript that compiles to clean JavaScript output. TensorFlow An Open Source Machine Learning Framework for Everyone Django The Web framework for perfectionists with deadlines. Laravel A PHP framework for web artisans D3 Bring data to life with SVG, Canvas and HTML. 📊📈🎉 Recommend Topics javascript JavaScript (JS) is a lightweight interpreted programming language with first-class functions. web Some thing interesting about web. New door for the world. server A server is a program made to process requests and deliver data to clients. Machine learning Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently. Visualization Some thing interesting about visualization, use data art Game Some thing interesting about game, make everyone happy. Recommend Org Facebook We are working to build community through open source technology. NB: members must have two-factor auth. Microsoft Open source projects and samples from Microsoft. Google Google ❤️ Open Source for everyone. Alibaba Alibaba Open Source for everyone D3 Data-Driven Documents codes. Tencent China tencent open source team.
Comments (12) lovasoa commented on May 26, 2024 1 Oooh! I think I forgot to push the latest update to NPM!from react-contenteditable. WendellLiu commented on May 26, 2024 I tried on React v15.3.1 but this warning didn't jump out. The warning appeared only If I modify the code to pass html to div. return React.createElement( this.props.tagName || 'div', { ...props, ref: (e) => this.htmlEl = e, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onPaste: this.onPaste, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: {__html: html}, html // this line }, this.props.children ); hope it's helpfulfrom react-contenteditable. lovasoa commented on May 26, 2024 I'm not sure I understand... Of course, if you add html as a prop on a div, you get a warning. But why did you do that in the first place?from react-contenteditable. WendellLiu commented on May 26, 2024 @lovasoa You are talking about my example code? If so, this example code just show the only way I can get the same warning. On the other hand, I can't get the same warning on the normal case.from react-contenteditable. lovasoa commented on May 26, 2024 Yes, so there is no warning, no problem. Why did you open this issue?from react-contenteditable. lovasoa commented on May 26, 2024 Oooh, sorry, I just realized it's not you who opened the issue! Sorry.from react-contenteditable. WendellLiu commented on May 26, 2024 I just doubt that @mewben maybe did this mistake .from react-contenteditable. lovasoa commented on May 26, 2024 @mewben Do you see this warning with the latest react and latest react-contenteditable ?from react-contenteditable. mewben commented on May 26, 2024 Still getting the same error on a fresh install of create-react-app node -v : v6.3.1 npm -v : 3.10.5 os: Mac from react-contenteditable. lovasoa commented on May 26, 2024 Done! Sorry!from react-contenteditable. lovasoa commented on May 26, 2024 Please confirm that I can now close this issue :)from react-contenteditable. mewben commented on May 26, 2024 Thanks. closing now.from react-contenteditable.
Vue.js 🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
javascript JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Machine learning Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Facebook We are working to build community through open source technology. NB: members must have two-factor auth.
from react-contenteditable.
Comments (12)
Oooh! I think I forgot to push the latest update to NPM!
from react-contenteditable.
I tried on React v15.3.1 but this warning didn't jump out.
The warning appeared only If I modify the code to pass
html
to div.hope it's helpful
from react-contenteditable.
I'm not sure I understand... Of course, if you add
html
as a prop on a div, you get a warning. But why did you do that in the first place?from react-contenteditable.
@lovasoa
You are talking about my example code?
If so, this example code just show the only way I can get the same warning. On the other hand, I can't get the same warning on the normal case.
from react-contenteditable.
Yes, so there is no warning, no problem. Why did you open this issue?
from react-contenteditable.
Oooh, sorry, I just realized it's not you who opened the issue! Sorry.
from react-contenteditable.
I just doubt that @mewben maybe did this mistake .
from react-contenteditable.
@mewben Do you see this warning with the latest react and latest react-contenteditable ?
from react-contenteditable.
Still getting the same error on a fresh install of
create-react-app
node -v : v6.3.1
npm -v : 3.10.5
os: Mac
from react-contenteditable.
Done! Sorry!
from react-contenteditable.
Please confirm that I can now close this issue :)
from react-contenteditable.
Thanks. closing now.
from react-contenteditable.
Related Issues (20)
Recommend Projects
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
TensorFlow
An Open Source Machine Learning Framework for Everyone
Django
The Web framework for perfectionists with deadlines.
Laravel
A PHP framework for web artisans
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
web
Some thing interesting about web. New door for the world.
server
A server is a program made to process requests and deliver data to clients.
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Visualization
Some thing interesting about visualization, use data art
Game
Some thing interesting about game, make everyone happy.
Recommend Org
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
Microsoft
Open source projects and samples from Microsoft.
Google
Google ❤️ Open Source for everyone.
Alibaba
Alibaba Open Source for everyone
D3
Data-Driven Documents codes.
Tencent
China tencent open source team.