-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
Using FluentUI2: Unable to change Modal size #5454
Comments
@David-Moreira, I need your help with this one. For some reason, when the ModalProvider passes the Size parameter to the ModalContent, which is used by the Fluent provider, it seems to never change after that. I cannot figure out what is wrong. |
hmm do you have a branch open with the attempt? |
I just did this in the demo public async Task ShowStateful()
{
if ( statefulModalInstance is null )
{
statefulModalInstance = await ModalService.Show<Counter>( "My Stateful content", new ModalInstanceOptions()
{
Stateful = true,
RenderMode = ModalRenderMode.LazyLoad,
+ Size = ModalSize.ExtraLarge,
} );
return;
}
await ModalService.Show( statefulModalInstance );
} |
Strange I believe I've seen that work. Is it happening provider specifically? |
Yes. For the Fluent provider, I had to propagate the Size from |
It seems like the custom handlers in I added the
|
It still doesn't work as expected. It remembers the last size and shows XL for all opened modal instances If you go to the demo
launch and click on Now click on any other demo and it will still show as XL modal. |
Discussed in #5450
Originally posted by DomenicoFormoso April 10, 2024
In version 1.5.1 of FluentUI I found the same problem found on material and then solved here:
#5063
The text was updated successfully, but these errors were encountered: