Dataverse Flyout Button not working when click right after the buttons appear
yes this is a common behavior seen in model-driven apps (Dynamics 365 / Power Apps) when using Flyout (Command Bar) buttons with custom JavaScript actions.
Ribbon/Flyout refresh timing
After a Flyout button action runs (like “Calculate”), the command bar may re-render or refresh to update the state (enabled/disabled rules, visibility, etc.).
During this refresh, a brief delay (~500–1000 ms) occurs where other buttons temporarily lose their click event binding — so clicking too soon appears to do nothing. Async JavaScript (Promise or setTimeout)
If your “Calculate” function executes asynchronously (for example, saves a record or calls Xrm.WebApi.updateRecord), the ribbon may refresh automatically after the save completes.
This again resets your Flyout component temporarily. Button Command Dependencies
If both buttons share the same Command Bar group or flyout parent and the command definitions include any EnableRule or DisplayRule tied to form attributes, Dynamics re-evaluates them on any form data change → causing UI refresh lag.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.