-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Bug]: Date Selection in HijriDatePicker not working as expected #22
Comments
I noticed that the issue is related to the hijri-calendar extension for the dayjs library. We might replace the calendar package in the next major release unless a solution is found. |
لدي نفس المشكلة والمشكلة الاخرى ان شهر اثنين عند الضغط على يوم 29 / 2 / 1446 يطلع 01 / 03 / 1446 |
Because the extension and process are heavily related to the Gregory calendar. PR is welcome. |
idk if that gonna help ya all but this how i did it for me simple one
and this is the html
|
it's just temp sol till find another one |
Thank you @CodeDanger. I'll give it a try. |
What happened?
so whenever i try to set hijri date picker to live mode and give it some after state updated there is 2 problem appears first one
is assume today one of these days [21,22,23,24,25]
some days depend in month day count 30 or 29
if you hover with mouse over todays date then go again to the end date hover it
the current month will be automaticly switched to the next month
i have attached video for this process so you can understand
ezyZip.mp4
the second point is when ever try to select last day in current month it doesn't selected instead it select the next day which is the first date in the next month
here is specific part of code causes error
`
// Hijri Date
`
and here is the full resource code
`<?php
namespace App\Filament\Resources;
use App\Filament\Actions\Tables\ExportPdfAction;
use App\Filament\Exports\ContractExporter;
use App\Models\Contract;
use Filament\Resources\Resource;
use App\Filament\Resources\ContractResource\Pages;
use Filament\Forms\Form;
use Filament\Forms\Components{Actions, Component, Select, DatePicker, TextInput, Textarea, Repeater, Section, Tabs};
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Actions\EditAction;
use Filament\Tables\Actions\DeleteAction;
use Filament\Tables\Table;
use Illuminate\Validation\Rule;
use Filament\Resources\Pages\CreateRecord;
use Filament\Tables\Actions\Action;
use Filament\Tables\Actions\ActionGroup;
use MohamedSabil83\FilamentHijriPicker\Forms\Components\HijriDatePicker;
use Filament\Support\Colors\Color;
use Carbon\Carbon;
use Carbon\CarbonInterval;
class ContractResource extends Resource
{
protected static ?string $model = Contract::class;
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static ?int $navigationSort = 4;
}`
How to reproduce the bug
just do as example that i told in what happend
Package Version
latest
PHP Version
8.3.10
Laravel Version
11
Which operating systems does with happen with?
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: