MDBAutocomplete inside MDBStepper - dropdown outside stepper


Topic: MDBAutocomplete inside MDBStepper - dropdown outside stepper

ytec pro premium priority asked 2 years ago

I'm using MDBAutocomplete inside a Step (MDBStepperStep), and the dropdown for the autocomplete renders outside of the stepper, on top of the page.

Expected behavior

Render the dropdown right below the autocomplete field

Actual behavior

dropdown renders outside of the whole stepper component

Resources (screenshots, code snippets etc.) enter image description here enter image description here

<MDBStepperStep headIcon={3} headText={t("Company")} itemId={3}>
      <MDBRow>
        <MDBCol size="12" md="8" lg="6" xl="4" className="mx-auto text-center">
        <MDBAutocomplete
        data={data}
        label={t("Company name")}
        onSearch={onSearch}
        onSelect={onSelectCompany}
        />
        <MDBBtn className='mx-2' color='tertiary' rippleColor='light' onClick={toggleModal}>
            {t("Your company is not listed? Click here to add it.")}
        </MDBBtn>
        </MDBCol>
      </MDBRow>
      {selectedCompany && selectedCompany.length > 0 &&
      <MDBRow className="mt-4">
        <MDBCol size="12" md="8" lg="6" xl="4" className="mx-auto">
            <MDBInput className="mb-2" label={t("Position")} />
            <MDBInput className="mb-2" label={t("Department")} />
        </MDBCol>
      </MDBRow>
        }
    </MDBStepperStep>

Grzegorz Bujański staff answered 2 years ago

Thanks for reporting. We will 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 5.1.0
  • Device: Desktop
  • Browser: Chrome, Edge
  • OS: Windows
  • Provided sample code: No
  • Provided link: No