Sarveshgithub / sfdc-lwc-lightning-datatable

Salesforce Lighting Data table
MIT License
78 stars 28 forks source link

[ BUG ] - Percent fields are displayed in a bad form #224

Closed mickaelgudin closed 1 year ago

mickaelgudin commented 1 year ago

Describe the bug the percent type is displayed in a bad form (see screenshot below).

To Reproduce Select any percent field

Expected behavior We should override the type just like with the date types,

"percent" => "percent-fixed"

percent-fixed will display the value without the % symbol after but the alternative would be to create a custom component (I think using percent-fixed should be enough).

Screenshots image

@Sarveshgithub I'll do a PR soon to fix this.