Skip to content

Commit 1ade74e

Browse files
atesgoralvieron
authored andcommitted
fix(gridster): the preview holder should not always use li
Use the same element as the original widget for the preview holder. Using a <li> can cause a list item bullet to be displayed when widgets are not necessarily <li> elements.
1 parent 31fd8d6 commit 1ade74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.gridster.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@
716716
this.collision_api = this.$helper.collision(
717717
colliders, this.options.collision);
718718

719-
this.$preview_holder = $('<li />', {
719+
this.$preview_holder = $('<' + this.$player.get(0).tagName + ' />', {
720720
'class': 'preview-holder',
721721
'data-row': this.$player.attr('data-row'),
722722
'data-col': this.$player.attr('data-col'),

0 commit comments

Comments
 (0)