draft-js-linkify-plugin warning
See original GitHub issueWhen I use draft-js-linkify-plugin, there is warning:
Warning: Unknown props
entityKey
,offsetKey
,getEditorState
,setEditorState
on tag.
I think it’s the code in draft-js-linkify-plugin/src/Link/index.js
causes the warning:
export default class Link extends Component {
render() {
/* eslint-disable no-use-before-define */
const {
decoratedText = '',
theme = {},
target = '_self',
className,
...props,
} = this.props;
/* eslint-enable */
const combinedClassName = unionClassNames(theme.link, className);
const links = linkify.match(decoratedText);
const href = links && links[0] ? links[0].url : '';
return (
<a
{...props}
href={href}
className={combinedClassName}
target={target}
/>
);
}
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to use the draft-js-linkify-plugin function in draft-js ... - Snyk
To help you get started, we've selected a few draft-js-linkify-plugin examples, based on popular ways it is used in public projects.
Read more >Linkify - DraftJS Plugins - High quality plugins with great UX
In this case, only the linkifyPlugin // is passed in, although it is possible to pass in multiple ... import '@draft-js-plugins/linkify/lib/plugin.css';.
Read more >draft-js-plugins-linkify bug - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >Cannot get entityMap using @draft-js-plugins/linkify & hashtag ...
Cannot get entityMap using @draft-js-plugins/linkify & hashtag plugin (NextJS) ... component(props) { // eslint-disable-next-line no-alert, ...
Read more >draft-js-linkify-plugin - npm
Linkify Plugin for DraftJS. Latest version: 2.0.2, last published: 3 years ago. Start using draft-js-linkify-plugin in your project by ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i still get the warning in beta10 when using custom handler, e.g. onClick. removing contentState from props solved the problem for me:
I can approve that beta10 works fine for me.