Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default text in date input is not showing on mobile #2686

Open
ErHamza opened this issue Aug 10, 2023 · 1 comment
Open

The default text in date input is not showing on mobile #2686

ErHamza opened this issue Aug 10, 2023 · 1 comment

Comments

@ErHamza
Copy link

ErHamza commented Aug 10, 2023

I'm using Bootstrap5 and this is my code :

<form action="" method="GET" class="row g-1 mb-3 ">
<div class="col-lg-2 col-md-4 col-6 mb-2">
    <input type="date" class="form-control" name="startDate" style="font-size:.9rem">
</div>
<div class="col-lg-2 col-md-4 col-6 mb-2">
    <input type="date" class="form-control" name="endDate" style="font-size:.9rem">
    </div> 
</div>

the view on Desktop :

Capture d’écran 2023-08-10 à 11 34 34

the view on Mobile
Capture d’écran 2023-08-10 à 11 35 07

this is how I import bootstrap :

 <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
//code
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" ></script>

Remarque : When I test the mobile view with dev tools in the browser it works fine. the problem shows off only when Im on mobile.

@OlivierVanEester
Copy link

OlivierVanEester commented Aug 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants