Skip to content

bug: Item with multiple inputs including datetime renders incorrectly in RTL mode #25483

@sean-perkins

Description

@sean-perkins

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Only in RTL mode, when rendering an ion-item with multiple inputs, such as a checkbox slotted to the start and end and a datetime in the primary content; will clip the datetime in RTL mode only.

Screen Shot 2022-06-15 at 7 18 44 PM

Expected Behavior

Datetime should not be clipped in RTL mode.

Screen Shot 2022-06-15 at 7 19 22 PM

Steps to Reproduce

  1. Open reproduction app
  2. Observe: ion-datetime is clipped
  3. Change dir="rtl" to dir="ltr"
  4. Wait for Stackblitz to reload
  5. Observe: Datetime is not clipped

Ignore datetime months changing rapidly within stackblitz with this bug. Due to the width of the datetime being clipped, the intersection observer can fire many times.

Code Reproduction URL

https://stackblitz.com/edit/ztbrct?file=index.html,package.json

Ionic Info

N/A

Additional Information

No response

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