Skip to content

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

Description

@ConnectedReasoning

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions