textarea
textarea copied to clipboard
fix: avoid inline styles to ensure CSP compliancy
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
@MadCcc is there any chance to merge this? 😊
@MadCcc could you please verify an merge this?
We need some test for it.
@jaulz could you please add some tests for it?
@aso1datov I don't have the capacity right now. Feel free to pull my branch and extend it if you need it urgently.