Skip to content
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

DropZone: CanDropClass and NoDropClass not applied on touch device #8960

Open
1 of 2 tasks
tjany-ic opened this issue May 13, 2024 · 0 comments
Open
1 of 2 tasks

DropZone: CanDropClass and NoDropClass not applied on touch device #8960

tjany-ic opened this issue May 13, 2024 · 0 comments

Comments

@tjany-ic
Copy link

Bug type

Component

Component name

MudDropContainer

What happened?

When using a DropZone on a touch device, the css classes defined in CanDropClass and NoDropClass are not applied when hovering the target zone.

Screenshot 2024-05-13 130613

The apple is droppable in the zone and the zone border should be green.

The issue could be tested by 2 individual people with the following sceanrios:

  • Any MudBlazor Dropzone component using our own application, a new project using the code in the reproduction link, and the MudBlazor documentation
  • Android Emulator, MAUI Blazor Hybrid app - Android 13 API33
  • Touch monitor, Blazor WebAssembly App - Edge, Chrome and Firefox on Windows 11
  • Touch monitor, Blazor Web Server App - Edge, Chrome and Firefox on Windows 11

In all cases on a Windows computer, using the mouse did not cause any issues.

Expected behavior

The CSS class defined in CanDropClass and NoDropClass is applied to the target drop zone.

The following screenshot shows the expected behavior working when using a mouse:
Screenshot 2024-05-13 130541

Reproduction link

https://try.mudblazor.com/snippet/QYweazvRpsdiUqrM

Reproduction steps

  1. Have a touch device to control the app (like a touch monitor, a phone/tablet, or a MAUI Blazor Hybrid project, using the Android Emulator).
  2. In the MudDropContainer, ApplyDropClassesOnDragStarted is set to "false" and a css class is defined in "CanDropClass".
  3. Drag an item into the drop zone

Relevant log output

No response

Version (bug)

6.19.1

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome, Edge

On which operating systems are you experiencing the issue?

Windows, Android

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant