MDBSelect crash when data is empty


Topic: MDBSelect crash when data is empty

clickstudioltd pro premium priority asked 2 years ago

Select component crashes the UI if the data attribute is an empty array.

import React from 'react';
import { MDBSelect } from 'mdb-react-ui-kit';

export default function App() {
  return <MDBSelect label="Test" data={[]} />;
}

Grzegorz Bujański staff answered 2 years ago

Thanks for reporting, we'll fix it as soon as possible


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 6.1.0
  • Device: PC
  • Browser: Mozilla Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags