-
Notifications
You must be signed in to change notification settings - Fork 409
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
fix: OnCompleted stops dialogues working in FluentInputFile #3355
Comments
The issue is not related to
Should I submit a PR? |
Yes please. It's causing a lot of issues. |
@dvoituron @vnbaaij Should I create the PR or paste the updated code here? Just not sure of the approval process for PRs. |
Create a PR please. Reference this issue with 'Fix #3355' in the description (not in the title). Denis or I will then take a look and if everything checks out, we'll merge it in. |
@vnbaaij Thanks. I wasn’t sure when to proceed with the PR. I wanted to confirm since what I see as an issue might not always be one. The fix is a substantial change in how streamed uploads are done. Should there be an opt-in parameter and what should it be named? |
Is there any change needed to the code a developer uses? If so, yes then we need to make it opt-in. If not, then we can change whatever we want. |
Even if it doesn't change the public API layer, it will yield back to the dispatcher, causing different side-effects than it currently does. Everyone is currently using it synchronously, and so to yield back control will be a significant change to how it is used, even if it is supposed to fix the problems.
Could it be a new mode? `AsychronousStream`
That way, no current code is touched, and people can opt-in by choosing the new upload mode. Then, there's no options to set, and you don't need to worry about individual overrides, or other side-effects.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Vincent Baaij ***@***.***>
Sent: Sunday, February 23, 2025 5:37:04 PM
To: microsoft/fluentui-blazor ***@***.***>
Cc: Peter Matthews ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/fluentui-blazor] fix: OnCompleted stops dialogues working in FluentInputFile (Issue #3355)
Is there any change needed to the code a developer uses? If so, yes then we need to make it opt-in. If not, then we can change whatever we want.
—
Reply to this email directly, view it on GitHub<#3355 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABKXDFYNALFPFGGEY2TAWOT2RIBMBAVCNFSM6AAAAABXCPJOFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGAYDEMRYGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
[vnbaaij]vnbaaij left a comment (microsoft/fluentui-blazor#3355)<#3355 (comment)>
Is there any change needed to the code a developer uses? If so, yes then we need to make it opt-in. If not, then we can change whatever we want.
—
Reply to this email directly, view it on GitHub<#3355 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABKXDFYNALFPFGGEY2TAWOT2RIBMBAVCNFSM6AAAAABXCPJOFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZXGAYDEMRYGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I'm ok with creating a new mode or opt-in. |
@ApacheTech I'm re-thinking how I've approached this. In the meantime, have a look at: #2592 |
@rpodevns, it's been over three weeks now since there's been any update for this. Will a fix be coming any time soon? Please reply, even just to say no. |
🐛 Bug Report
If you try to use dialogues within the
OnCompleted
task of aFluentInputFile
component, the buttons within the dialogue do not respond.💻 Repro or Code Sample
This assumes that
<FluentDialogProvider />
is added withinMainLayout.razor
orApp.razor
.🤔 Expected Behavior
Whether the confirmation dialogue is shown via
OnClick
fromFluentButton
, orOnComplete
fromFluentInputFile
, both should allow the dialogue to be responsive.😯 Current Behavior
The above code sample shows that the buttons within the dialogue are unresponsive, if called via the
OnCompleted
task.💁 Possible Solution
Could the
OnCompleted
task be detached from the page dispatcher, requiring anInvokeAsync
wrapper to reattach it?🔦 Context
One of our services is Partially Automated Workflows, where the user uploads a file, and needs to confirm that they wish to continue if there are any chargable items within the workflow. This issue stops that process from working.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: