Open samih-sghier opened 2 years ago
same problem, so is there any fix ?
@samih-sghier This should fix it: <ModalDropdown dropdownListProps={{}} options={housingType} defaultValue={optionLeft || 'Type'} onSelect={(itemValue) => this.handleChangeHousingType(itemValue, dispatch)} />
i.e. by adding dropdownListProps={{}}
@ahmed563 The problem still persists even after adding dropdownListProps={{}}.
Getting the following error: TypeError: undefined is not an object (evaluating 'dropdownListProps.ListHeaderComponent')
The component was working fine until recently. After debugging the issue is coming from the "options" prop. This is what my code looks like:
<ModalDropdown options={housingType} defaultValue={optionLeft || 'Type'} onSelect={(itemValue) => this.handleChangeHousingType(itemValue, dispatch)} />