Uploaded image for project: 'stripes-components'
  1. stripes-components
  2. STCOM-875

Datepicker in Modal requires usePortal

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • None
    • None
    • Bienenvolk

    Description

      Overview: <Datepicker> does not display within <Modal> components since the React 17 update (STRIPES-722)
      Steps to Reproduce:

      1. Visit users, click the "Actions", click "Cash drawer reconciliation report"
      2. Click any date fields

      Expected Results: Datepicker displays
      Actual Results: No Datepicker for you!

      In an ideal world, we'd figure out a way for <Datepicker> to understand where it's being rendered (i.e. in a <Modal> or not) and handle this automatically within <Datepicker>. Alas, I fear this is an umbrella issue ui-* apps can point to and we'll need to fix this on a per-instance basis at the level where <Datepicker> is instantiated.

      Interested parties: Alina Dorosh

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adityamatukumalli Aditya matukumalli
                adityamatukumalli Aditya matukumalli
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases