Skip to content

Commit

Permalink
fix: Salesforce doesn't support Document Fragment (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Jan 25, 2024
1 parent cab6898 commit 9e3fb5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createDomElement, type GridOption } from '@slickgrid-universal/common';
import { EventNamingStyle } from '@slickgrid-universal/event-pub-sub';

// create empty warning message as Document Fragment to be CSP safe
const emptyWarningElm = new DocumentFragment();
const emptyWarningElm = document.createElement('div');
emptyWarningElm.appendChild(createDomElement('span', { className: 'mdi mdi-alert color-warning' }));
emptyWarningElm.appendChild(document.createTextNode(' No data to display.'));

Expand Down

0 comments on commit 9e3fb5f

Please sign in to comment.