Skip to content

Commit

Permalink
NumericField: Don't allow MouseWheel when Readonly/Disabled (MudBlazo…
Browse files Browse the repository at this point in the history
…r#3656)

* Correct Readonly/Disable OnMouseWheel Handler

* restore old files

Restoring old file
I have not seen that this .csproj was modified by visual studio 2022

* restore dev csproj
  • Loading branch information
jcambert authored and jammerware committed Sep 20, 2022
1 parent 3c37329 commit 5b658a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/MudBlazor.Docs/MudBlazor.Docs.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-reference -->
<!--https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-reference -->
<!--Use: dotnet msbuild -preprocess:<fileName>.xml to evaluate this project-->
<Project Sdk="Microsoft.NET.Sdk.Razor">

Expand Down Expand Up @@ -130,4 +130,4 @@
<Folder Include="wwwroot\images\landingpage" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ protected Task HandleKeyUp(KeyboardEventArgs obj)

protected async Task OnMouseWheel(WheelEventArgs obj)
{
if (!obj.ShiftKey)
if (!obj.ShiftKey || Disabled || ReadOnly)
return;
if (obj.DeltaY < 0)
{
Expand Down

0 comments on commit 5b658a6

Please sign in to comment.