fmoo / react-typeahead

Pure react-based typeahead and typeahead-tokenizer
ISC License
677 stars 232 forks source link

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

Open ConnectedReasoning opened 4 years ago

ConnectedReasoning commented 4 years ago

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>
aaroncrawford commented 4 years ago

Getting this as well on React 16.10.1.