Skip to content

FluentDatePicker Issue When Disabling The Weekends Causing Disabling of some Months as well. #3495

@CodeGallery4u

Description

@CodeGallery4u

🐛 Bug Report

I wanted to disable the weekend from the calendar but if I disable the weekends the months view is getting affected and it is disabling the months (Feb, Mar, June, Nov)

FluentUI Version : 4.11.3

💻 Repro or Code Sample


@page "/"
@using ExcelPateDemo.Model
@rendermode InteractiveServer


<FluentDatePicker DisabledDateFunc="@DisabledDay" />


@code {
    private bool DisabledDay(DateTime date) => date.DayOfWeek == DayOfWeek.Saturday || date.DayOfWeek == DayOfWeek.Sunday ;

}

Image

🤔 Expected Behavior

The code should only disable the weekends.
Weekends are disabled in months view.

Image

😯 Current Behavior

When I moved to months view it is disabling the months as well. This was not expected.

Image

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions