Skip to content

Prevent javascript URLs warning in React 16.9ย #2384

Closed
bluecanvas/design-system-react
#1
@hannes-o-brunner

Description

@hannes-o-brunner

@salesforce/design-system-react@0.10.12

React 16.9 emits the following warning:

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);".

See facebook/react#16592 for the feature issue
And some related discussions here: facebook/react#16382

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions