Skip to content

Popper not displaying correctly #1489

Closed
@Gwith

Description

@Gwith

When using Datepicker with time only (showTimeSelect, showTimeSelectOnly) I'm getting unexpected results:

            <DatePicker
              selected={this.props.startDate}
              onChange={this.props.handleChange}
              withPortal
              showTimeSelect
              showTimeSelectOnly
              timeIntervals={15}
              dateFormat="LT"
              timeCaption="Time"
            />

Expected behavior

Here is a screenshot of what the Component should look like when rendered to the DOM.

Actual behavior

This is the result when used. As you can see the popper is being cutoff some how.

Steps to reproduce

If it matters I have this component embedded into a table, an example is shown below:

   <table>
  <thead>
    <tr>
      <td>header</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <DatePicker
          selected={this.props.startDate}
          onChange={this.props.handleChange}
          showTimeSelect
          showTimeSelectOnly
          timeIntervals={15}
          dateFormat="LT"
          timeCaption="Time"
        />
      </td>
    </tr>
  </tbody>
</table>

What might be the issue that is causing the popper window to not display correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions