Skip to content

Commit 18fddf2

Browse files
authored
Merge pull request #1474 from dashql/fix/placeholder-item-class
Fix placeholder not carrying base item class
2 parents befa751 + 2147439 commit 18fddf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class GridStack {
298298
placeholderChild.className = 'placeholder-content';
299299
placeholderChild.innerHTML = this.opts.placeholderText;
300300
this.placeholder = document.createElement('div');
301-
this.placeholder.classList.add(this.opts.placeholderClass, this.opts.itemClass);
301+
this.placeholder.classList.add(this.opts.placeholderClass, defaults.itemClass, this.opts.itemClass);
302302
this.placeholder.appendChild(placeholderChild);
303303

304304
this._updateContainerHeight();

0 commit comments

Comments
 (0)