walkframe / gridsheet

Spreadsheet component for React
https://docs.walkframe.com/gridsheet/react
Apache License 2.0
172 stars 12 forks source link

🐛 [BUG] - Font and Font Size Not Applied in View Mode #58

Closed Abdulrehmanharisdev closed 2 months ago

Abdulrehmanharisdev commented 3 months ago

Description

I am dynamically applying styles to each cell in my GridSheet component, including font, fontSize, and other properties. These styles are correctly applied and displayed when the cells are being edited. However, when I focus out and in view mode, the font and fontSize properties are not retained. Instead, the default font and font size are shown during. image

Reproduction URL

https://docs.walkframe.com/products/gridsheet/react/

Reproduction steps

I am dynamically applying styles to each cell in my GridSheet component, including font, fontSize, and other properties. These styles are correctly applied and displayed when the cells are  being edited. However, when I focus out and in view mode, the font and fontSize properties are not retained. Instead, the default font and font size are shown during.

Screenshots

No response

Logs

No response

Browsers

Chrome

OS

Windows

righ commented 2 months ago

Thanks for reporting the bug. Please check back as I have fixed it in v1.0.7.

Abdulrehmanharisdev commented 2 months ago

when it will be merged ?

righ commented 2 months ago

I pushed a fix commit da10ca1 to master, so no need to merge. The font size has been fixed at https://www.npmjs.com/package/@gridsheet/react-core/v/1.0.7 . The other elements have been reported by you in #60, so please close this Issue when you are sure that the font size is fixed in this version.

Abdulrehmanharisdev commented 2 months ago

Thanks it fixed!