pets-oss / pets-front

Pets Information System Front-end
MIT License
4 stars 36 forks source link

Update create animal form #166 #176

Closed linaskitm closed 3 years ago

linaskitm commented 3 years ago

Something wrong with description.

Screenshot 2021-05-19 165401

saulyz commented 3 years ago

Regarding your question about the screenshot - is the problem the description value? Normally would expect string with HTML and it seems we have object. This might depend upon the component configuration. Can't give the ready solution, but exploring https://github.com/niuware/mui-rte might help.

domzic commented 3 years ago

mui-rte editor passes stringified object to onSave callback. We need to convert it to JSON object and then take text field. Could you add these changes? onSave={data => props.onChange(JSON.parse(data).text)}

saulyz commented 3 years ago

Merging this PR as it has reached main objectives. mui-rte fixes will be made on another PR.