hc-oss / react-multi-select-component

Lightweight (~5KB gzipped) multiple selection dropdown component
https://codesandbox.io/s/react-multi-select-example-uqtgs
MIT License
387 stars 89 forks source link

feat(no-inject-style): Added second build witouth style injection #720

Open marcinm2h opened 11 months ago

marcinm2h commented 11 months ago

Created a second build for the CSP problem when using recommended strict policy on production.

import { MultiSelect } from "react-multi-select-component";

Would be changed (if needed) to:

import { MultiSelect } from "react-multi-select-component/no-inject-style";
import  "react-multi-select-component/no-inject-style/index.css";

Should help with those issues also.

https://github.com/hc-oss/react-multi-select-component/issues/655 https://github.com/hc-oss/react-multi-select-component/issues/516