Impossible to edit styles in Chrome?

偶尔善良 提交于 2020-02-18 00:59:45

问题


Since I've implemented server side rendering and managing the styles with styled-components, Im unable to edit styles in Chrome Dev Tools. The styles in devtools become italic and theres no checkbox to turn off/on specified style.

It works properly in Mozilla. But why not in Chrome? Any ideas why does it happen? Thanks.

Note: It happens in production.


回答1:


I think you're probably seeing the styles injected via "speedy mode" in production. This uses a special DOM API that Chrome DevTools currently only shows in a read-only capacity. We haven't put in an escape hatch to disable this injection method yet, but it's being considered.

When running your setup in development mode everything should be normally inspectable and editable.



来源:https://stackoverflow.com/questions/52582995/impossible-to-edit-styles-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!