DatePicker issue:

Before Upgrading to filamentphp version: v3.0.34, it was working perfectly, now picking a date console gives the following error:
Uncaught TypeError: currentNode is null in livewire.js

    get children() {
        let children = [];
        let currentNode = this.startComment.nextSibling;
        while (currentNode !== void 0 && currentNode !== this.endComment) {
        children.push(currentNode);
        currentNode = currentNode.nextSibling;
        }
        return children;
    }

    Forms\Components\DatePicker::make('meeting_date')
    ->placeholder('e.g. ' . now()->format('M d, Y'))
    ->maxDate(now())
    ->before(now())
    ->closeOnDateSelection()
    ->native(false)
    ->suffixAction(NowAction::make('current_date'))
    ->required()
    ->reactive()
    ->rules([
        function (Get $get) {
            return function (string $attribute, $value, Closure $fail) use ($get) {
                $board = Board::query()
                    ->where('id', $get('board_id'))
                    ->where('entity_id', auth()->user()->entity_id)
                    ->first();

                $withInRange = Carbon::parse($value)->between(Carbon::parse($board->start_date)->toDateString(), Carbon::parse($board->end_date)->toDateString());

                if (!$withInRange) {
                    $fail("The meeting date should be within range of board's tenure.");
                }
            };
        },
    ]);
Was this page helpful?