Skip to content

Commit

Permalink
Fixed #2112 - Dropdown search crashes when no match with VirtualScrollar
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 15, 2021
1 parent 1f69ae9 commit b933196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dropdown/DropdownPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class DropdownPanelComponent extends Component {
itemTemplate: (item, options) => item && this.renderItem(item, options.index),
contentTemplate: (options) => {
const className = classNames('p-dropdown-items', options.className);
const content = this.isEmptyFilter() ? this.renderEmptyFilter() : options.children;
const content = this.isEmptyFilter() ? this.renderEmptyMessage() : options.children;

return (
<ul ref={options.ref} className={className} role="listbox">
Expand Down

0 comments on commit b933196

Please sign in to comment.