Modal Button Shrinks When Disabled

Pretty much just what it says in the title. Seems to be since the latest update to allow a component to auto resize to "hug content" (which was a nice addition btw), when a modal button that has been resized to be wider is disabled it shrinks to its default size. Haven't yet been able to find a work around.

Screen Shot 2021-05-13 at 2.28.28 PM

Screen Shot 2021-05-13 at 2.28.58 PM

Any ideas? Thanks. :slight_smile:

Hey @pascal,

This definitely looks like a bug. I have written up a report and submitted it to the engineering team. We'll make sure to follow up here once it is resolved!

As a workaround, you could hide the modal, then use a button with the following Event Handler:

as buttons do not seem to suffer from this same behavior.

But this would be a bit of work if you have a lot of modals, and also you would probably want to undo it once the bug is properly resolved.

This bug should be fixed now! Let us know if you are still seeing any odd behavior here :grin: