Skip to content

Commit

Permalink
Fix additional spaces when adding a new class to cssClass and cssClas…
Browse files Browse the repository at this point in the history
…sAll (#427)
  • Loading branch information
OS-giulianasilva authored Jul 31, 2024
1 parent 86f5b11 commit 36a275f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Providers/DataGrid/Wijmo/Features/Styling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace Providers.DataGrid.Wijmo.Feature {
let classList = [];
const column = this._grid.getColumn(columnID);

if (column) {
const classListString = column.provider.cssClass || ' ';
if (column && column.provider.cssClass) {
const classListString = column.provider.cssClass;
classList = classListString.split(' ');
}

Expand All @@ -25,8 +25,8 @@ namespace Providers.DataGrid.Wijmo.Feature {
let classList = [];
const column = this._grid.getColumn(columnID);

if (column) {
const classListString = column.provider.cssClassAll || ' ';
if (column && column.provider.cssClassAll) {
const classListString = column.provider.cssClassAll;
classList = classListString.split(' ');
}

Expand Down

0 comments on commit 36a275f

Please sign in to comment.