Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning/Error message regarding javascript: URLs upon entering text #258

Open
ConnectedReasoning opened this issue Aug 9, 2019 · 1 comment

Comments

@ConnectedReasoning
Copy link

ConnectedReasoning commented Aug 9, 2019

As I added text into Typeahead field I saw the following error in my console

react-dom.development.js:545 Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript: void 0;".

When i look at the selector item rendered by typescript I see this

<ul class="typeahead-selector">
    <li class="">
        <a href="javascript: void 0;" class="typeahead-option">myLink</a>
    </li>
</ul>
@ConnectedReasoning ConnectedReasoning changed the title on entering text into Typeahead I get an warning/error message Warning/Error message regarding javascript: URLs upon entering text Aug 9, 2019
@aaroncrawford
Copy link

Getting this as well on React 16.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants