textarea icon indicating copy to clipboard operation
textarea copied to clipboard

fix: avoid inline styles to ensure CSP compliancy

Open jaulz opened this issue 2 years ago • 5 comments

This fix will avoid setting inline styles and instead sets the styles directly on the element which I think should actually be the correct way of doing it. The nice side effect is that it will ensure that the unsafe-inline Content Security Policy will be adhered in all circumstances and hence fix this long standing issue: https://github.com/react-component/textarea/issues/14

jaulz avatar Oct 25 '23 09:10 jaulz

@MadCcc is there any chance to merge this? 😊

jaulz avatar Jan 11 '24 09:01 jaulz

@MadCcc could you please verify an merge this?

aso1datov avatar Sep 02 '24 09:09 aso1datov

We need some test for it.

MadCcc avatar Sep 03 '24 02:09 MadCcc

@jaulz could you please add some tests for it?

aso1datov avatar Sep 03 '24 07:09 aso1datov

@aso1datov I don't have the capacity right now. Feel free to pull my branch and extend it if you need it urgently.

jaulz avatar Sep 03 '24 07:09 jaulz