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 is not compatible with TupleValue #130

Open
JirkaVrbka opened this issue Oct 28, 2021 · 2 comments
Open

Dropzone is not compatible with TupleValue #130

JirkaVrbka opened this issue Oct 28, 2021 · 2 comments

Comments

@JirkaVrbka
Copy link

JirkaVrbka commented Oct 28, 2021

Hello,

Currently, when a List of Tulpe values are given as Items the drag hrml components always have a 'plk-dd-inprogess' class no matter what

Code examle:
<Dropzone Items="@(new List<ValueTuple<string, string>>{new ("a", "b"), new ("c", "d"), new ("e","f")})"> <div>@context.ToString()</div> </Dropzone>

the HTML result for this is always

<div draggable="true" class="plk-dd-draggable plk-dd-inprogess "><div>(a, b)</div> </div>

which (by default) disables pointer events.

@ViRuSTriNiTy
Copy link
Collaborator

Did you try to pass an actual list instance to Items instead of creating a list inline with new? My assumption is that the Blazor diffing is not working here as on each lifecycle run the pointer of hte list differs hence the internal service for handling the drag and drop state gets confused.

@JirkaVrbka
Copy link
Author

Yes, I tried that but the result is the same as before (and Dropzone works ok with inline new when the list is of different type like Tuple or string)

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

2 participants