Hello,
I’m using the calendar icon flatpickr next to manual search input but I can’t solve a problem
When I want to do a manual search with product code “1636835408” it converts “1638-11-08” as a date
How do I disable this conversion?
Date searches when I select calendar
So, all others are working fine
<div class="smallfont flatpickr" data-allow-input="true" data-wrap="true" data-click-opens="false" style="float:right; padding-top: 6px;padding-right: 6px;padding-bottom: 5px;">
<a data-clear="" title="İçeriği Temizle"><img alt="Temizle" src="images/x.png" style="width: 18px; height: 18px; cursor: pointer;" /></a>
<a data-toggle="" title="Bir Tarih Seç"><img alt="Tarih Seç" src="images/calender.png" style="width: 19px; height: 19px; cursor: pointer;" /></a>
<input data-input="" type="text" autocomplete="off" class="bginput" id="search" list="aranacaklar" placeholder="İçerik Ara / Çift Tıkla">
</div>
flatpickr(".flatpickr", {
"locale": "tr",
disableMobile: true,
allowInvalidPreload: true,
dateFormat: "Y-m-d",
enable: [ <?php echo $selected_dates; ?> ]
});
https://jsfiddle.net/ademgenc/4etwf5z1/
1636558790
Example enter this number and click on the blank field convert to date format How can I disable this conversion?