Skip to content

bug: ion-datetime title is not displayed when presentation="month-year" #26600

@Serg-Mois

Description

@Serg-Mois

Prerequisites

Ionic Framework Version

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

Current Behavior

slot="title" is not displayed when presentation="month-year" and [preferWheel]="true"

Expected Behavior

Title is displayed

Steps to Reproduce

<ion-datetime-button datetime="datetime"></ion-datetime-button>

<ion-modal [keepContentsMounted]="true">
  <ng-template>
    <ion-datetime presentation="month-year" id="datetime" [preferWheel]="true">
      <div slot="title">MY TITLE</div>
    </ion-datetime>
  </ng-template>
</ion-modal>

But if you change the presentation to "date" - everything works as expected

Code Reproduction URL

https://stackblitz.com/edit/angular-4shiwd-7qhimw?file=src%2Fapp%2Fexample.component.html

Ionic Info

"@ionic/angular": "6.4.1",
"@ionic/core": "6.4.1"

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