diff --git a/src/lib/picker/picker.component.ts b/src/lib/picker/picker.component.ts index a071beae..6f3659ad 100644 --- a/src/lib/picker/picker.component.ts +++ b/src/lib/picker/picker.component.ts @@ -414,7 +414,7 @@ export class PickerComponent implements OnInit { this.skinChange.emit(skin); } getWidth(): string { - if (this.style.width) { + if (this.style && this.style.width) { return this.style.width; } return this.perLine * (this.emojiSize + 12) + 12 + 2 + this.measureScrollbar + 'px';