dnnsoftware / Dnn.React.Common

Reusable JS Components - mostly React.JS - for DNN (formerly DotNetNuke) and more

Home Page:http://www.dnnsoftware.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Label Common component can fail trying to write styles to a readonly object

valadas opened this issue · comments

Describe the bug

The label styles are merges from two readonly objects using a function (Object.Assign) that writes to the first object and it fails because that object is readonly.

To Reproduce

Steps to reproduce the behavior:

  1. Not sure how, works in the storybook but fails in the Extensions module license acceptance.

Error log

Forgot to copy it, but something along the lines of: Cannot assing "float" to object labelStyle, from Object.Assing because it is readonly.

Additional context

Will submit a pull request on this in a minute.