question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: datetime wheel picker can not show title

See original GitHub issue

Prerequisites

Ionic Framework Version

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

Current Behavior

I upgraded from Ionic Vue v5 to Ionic Vue 6.3.0 and the new ion-datetime widget has problems when used within an ion-item, with text being cut off.

To minimise the problems I switched from the calendar view to the wheel, and changed <ion-label position="floating"> to <ion-label position="stacked">

The bottom of the label text is cut off, as is the right side of the date wheel (less important). Here is a screenshot from Android: cropped

Expected Behavior

It displays without issue

Steps to Reproduce

This is an extract from the component’s template, which is included inside a View:

<template>
  <div
    class="ion-padding ion-margin-vertical error-message"
    :class="{ hide: !isFormError }"
  >
    Please fill in all the fields
  </div>
  <form>
    <ion-item lines="full">
      <ion-label position="stacked">DOB</ion-label>
      <ion-datetime
        presentation="date"
        prefer-wheel="true"
        v-model="local.dob"
        required="true"
      ></ion-datetime>
    </ion-item>
  </form>
</template>

Code Reproduction URL

https://github.com/pbowyer/ionic-bugreport

Ionic Info

Ionic:

Ionic CLI : 6.20.3 (/Users/****/.asdf/installs/nodejs/18.6.0/.npm/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/vue 6.3.0

Capacitor:

Capacitor CLI : 4.3.0 @capacitor/android : 4.3.0 @capacitor/core : 4.3.0 @capacitor/ios : 4.3.0

Utility:

cordova-res : not installed globally native-run : 1.7.1

System:

NodeJS : v18.6.0 (/Users/****/.asdf/installs/nodejs/18.6.0/bin/node) npm : 8.13.2 OS : macOS Monterey

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pbowyercommented, Oct 17, 2022

Thanks @liamdebeasi, I haven’t been back onto the project yet to try the dev build yet. Hoping to later this week 🥳

0reactions
ionitron-bot[bot]commented, Nov 18, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-datetime - Ionic Framework
Datetimes present a picker interface to select dates and times. Ionic's API Datetime input component easily displays a preferred format, and manages values....
Read more >
HTML5 date picker doesn't show on Safari - Stack Overflow
I removed the references, and the error message is gone, but the date picker still doesn't work. Does anyone know if Big Sur...
Read more >
iOS14 SwiftUI DatePicker - How to … | Apple Developer Forums
When I run this, the date picker is displayed modally. How do I get it to expand inline in the form? I can't...
Read more >
[Date Picker by Input WP - Sync bookings with external Calendars ...
Submit form return error 'The date format is incorrect'. Started by: eenahan ... Field title not showing ... readonly datetimepicker shows calendar anyway....
Read more >
Date picker popup in Ionic 6 | Damir's Corner
Here is a typical markup for a date picker in Ionic 5: ... To make the ion-datetime component appear in a popup, place...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found